classification
Class CompleteFeatureFunction

java.lang.Object
  extended by classification.CompleteFeatureFunction
All Implemented Interfaces:
Serializable, FeatureFunction

public class CompleteFeatureFunction
extends Object
implements FeatureFunction, Serializable

See Also:
Serialized Form

Field Summary
 int defalutFeatureIndex
          this is the last feature for each y
 
Constructor Summary
CompleteFeatureFunction(Alphabet xAlphabet, Alphabet yAlphabet)
           
 
Method Summary
 SparseVector apply(SparseVector x, int y)
           
 int wSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defalutFeatureIndex

public int defalutFeatureIndex
this is the last feature for each y

Constructor Detail

CompleteFeatureFunction

public CompleteFeatureFunction(Alphabet xAlphabet,
                               Alphabet yAlphabet)
Method Detail

apply

public SparseVector apply(SparseVector x,
                          int y)
Specified by:
apply in interface FeatureFunction

wSize

public int wSize()
Specified by:
wSize in interface FeatureFunction


Copyright © 2009. All Rights Reserved.