contextFold.features
Class BinnedLengthFeatureExtractor

java.lang.Object
  extended by contextFold.features.FeatureExtractor
      extended by contextFold.features.BinnedLengthFeatureExtractor
All Implemented Interfaces:
java.io.Serializable

public class BinnedLengthFeatureExtractor
extends FeatureExtractor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class contextFold.features.FeatureExtractor
cardinality, currProcessedSeq, FEATURE_1_EXTRACTOR, seqFeatures
 
Constructor Summary
BinnedLengthFeatureExtractor(int binSize, int cardinality, boolean isOdd)
           
 
Method Summary
 int getFeature(byte[] seq, int val)
           
protected  void preprocess(byte[] seq)
           
 java.lang.String toString()
           
 
Methods inherited from class contextFold.features.FeatureExtractor
getCardinality, getEffectiveCardinality, getFeature, getFeatureName, getFeatures, setSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinnedLengthFeatureExtractor

public BinnedLengthFeatureExtractor(int binSize,
                                    int cardinality,
                                    boolean isOdd)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

preprocess

protected void preprocess(byte[] seq)
Specified by:
preprocess in class FeatureExtractor

getFeature

public int getFeature(byte[] seq,
                      int val)
Specified by:
getFeature in class FeatureExtractor