|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 int |
PROP_CMN_SHIFT_WINDOW_DEFAULT
The default value of PROP_CMN_SHIFT_WINDOW. |
static java.lang.String |
PROP_CMN_WINDOW
The name of the SphinxProperty for the live CMN window size. |
static int |
PROP_CMN_WINDOW_DEFAULT
The default value for PROP_CMN_WINDOW. |
static java.lang.String |
PROP_INITIAL_MEAN
The name of the SphinxProperty for the initial cepstral mean. |
static float |
PROP_INITIAL_MEAN_DEFAULT
The default value for PROP_INITIAL_MEAN. |
Constructor Summary | |
---|---|
LiveCMN()
|
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, 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
public static final float PROP_INITIAL_MEAN_DEFAULT
@S4Integer(defaultValue=100) public static final java.lang.String PROP_CMN_WINDOW
public static final int PROP_CMN_WINDOW_DEFAULT
@S4Integer(defaultValue=160) public static final java.lang.String PROP_CMN_SHIFT_WINDOW
public static final int PROP_CMN_SHIFT_WINDOW_DEFAULT
Constructor Detail |
---|
public LiveCMN()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class BaseDataProcessor
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public void initialize()
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 error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |