contextFold.features
Class FeatureExtractor

java.lang.Object
  extended by contextFold.features.FeatureExtractor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BinnedLengthFeatureExtractor, ContextFeatureExtractor

public abstract class FeatureExtractor
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

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

Field Detail

FEATURE_1_EXTRACTOR

public static final FeatureExtractor FEATURE_1_EXTRACTOR

cardinality

protected int cardinality

seqFeatures

protected int[] seqFeatures

currProcessedSeq

protected byte[] currProcessedSeq
Constructor Detail

FeatureExtractor

protected FeatureExtractor(int cardinality)
Method Detail

getCardinality

public int getCardinality()

getFeatures

public int[] getFeatures()

getFeature

public int getFeature(int val)

getFeature

public abstract int getFeature(byte[] seq,
                               int val1)

preprocess

protected abstract void preprocess(byte[] seq)

setSequence

public void setSequence(byte[] seq)

getEffectiveCardinality

public int getEffectiveCardinality()

getFeatureName

public java.lang.String getFeatureName(int featureIx)