public abstract class AbstractFeatureExtractor extends BaseDataProcessor
Modifier and Type | Field and Description |
---|---|
protected DoubleData[] |
cepstraBuffer |
protected int |
cepstraBufferEdge |
protected int |
cepstraBufferSize |
protected int |
currentPosition |
static java.lang.String |
PROP_FEATURE_WINDOW
The property for the window of the DeltasFeatureExtractor.
|
protected int |
window |
logger
Constructor and Description |
---|
AbstractFeatureExtractor() |
AbstractFeatureExtractor(int window) |
Modifier and Type | Method and Description |
---|---|
protected abstract Data |
computeNextFeature()
Computes the next feature.
|
Data |
getData()
Returns the next Data object produced by this DeltasFeatureExtractor.
|
void |
initialize()
Initializes this DataProcessor.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, setPredecessor
getName, initLogger, toString
@S4Integer(defaultValue=3) public static final java.lang.String PROP_FEATURE_WINDOW
protected int cepstraBufferEdge
protected int window
protected int currentPosition
protected int cepstraBufferSize
protected DoubleData[] cepstraBuffer
public AbstractFeatureExtractor(int window)
public AbstractFeatureExtractor()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class ConfigurableAdapter
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public void initialize()
BaseDataProcessor
initialize
in interface DataProcessor
initialize
in class BaseDataProcessor
public Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if there is a data processing errorprotected abstract Data computeNextFeature()