public class DiscreteCosineTransform2 extends DiscreteCosineTransform
cepstrumSize, melcosine, numberMelFilters, PROP_CEPSTRUM_LENGTH, PROP_NUMBER_FILTERS
logger
Constructor and Description |
---|
DiscreteCosineTransform2() |
DiscreteCosineTransform2(int numberMelFilters,
int cepstrumSize) |
Modifier and Type | Method and Description |
---|---|
protected double[] |
applyMelCosine(double[] melspectrum)
Apply the optimized MelCosine filter used in pocketsphinx to the given melspectrum.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
computeMelCosine, getData, initialize
getPredecessor, setPredecessor
getName, initLogger, toString
public DiscreteCosineTransform2(int numberMelFilters, int cepstrumSize)
public DiscreteCosineTransform2()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class DiscreteCosineTransform
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.protected double[] applyMelCosine(double[] melspectrum)
applyMelCosine
in class DiscreteCosineTransform
melspectrum
- the MelSpectrum data