|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.feature.LiveCMN
public class LiveCMN
Subtracts the mean of all the input so far from the Data objects. Unlike the BatchCMN, it does not read in
the entire stream of Data objects before it calculates the mean. It estimates the mean from already seen data and
subtracts the mean from the Data objects on the fly. Therefore, there is no delay introduced by LiveCMN.
PROP_INITIAL_MEAN, PROP_CMN_WINDOW, and PROP_CMN_SHIFT_WINDOW. Please follow the link "Constant Field Values" below to see
the actual name of the Sphinx properties.
The mean of all the input cepstrum so far is not reestimated for each cepstrum. This mean is recalculated after
every PROP_CMN_SHIFT_WINDOW cepstra. This mean is estimated by dividing the sum of all input cepstrum so
far. After obtaining the mean, the sum is exponentially decayed by multiplying it by the ratio:
cmnWindow/(cmnWindow + number of frames since the last recalculation)
This is a 1-to-1 processor.
BatchCMN| Field Summary | |
|---|---|
static java.lang.String |
PROP_CMN_SHIFT_WINDOW
The name of the SphinxProperty for the CMN shifting window. |
static java.lang.String |
PROP_CMN_WINDOW
The name of the SphinxProperty for the live CMN window size. |
static java.lang.String |
PROP_INITIAL_MEAN
The name of the SphinxProperty for the initial cepstral mean. |
| Constructor Summary | |
|---|---|
LiveCMN()
|
|
LiveCMN(double initialMean,
int cmnWindow,
int cmnShiftWindow)
|
|
| Method Summary | |
|---|---|
Data |
getData()
Returns the next Data object, which is a normalized Data produced by this class. |
void |
initialize()
Initializes this LiveCMN. |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
| Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor |
|---|
getPredecessor, getTimer, setPredecessor |
| Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
|---|
getName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@S4Double(defaultValue=12.0) public static final java.lang.String PROP_INITIAL_MEAN
@S4Integer(defaultValue=100) public static final java.lang.String PROP_CMN_WINDOW
@S4Integer(defaultValue=160) public static final java.lang.String PROP_CMN_SHIFT_WINDOW
| Constructor Detail |
|---|
public LiveCMN(double initialMean,
int cmnWindow,
int cmnShiftWindow)
public LiveCMN()
| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void initialize()
initialize in interface DataProcessorinitialize in class BaseDataProcessor
public Data getData()
throws DataProcessingException
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if there is a data processing error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||