public class DiscreteCosineTransform2 extends DiscreteCosineTransform
cepstrumSize, melcosine, numberMelFilters, PROP_CEPSTRUM_LENGTH, PROP_NUMBER_FILTERSlogger| 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, initializegetPredecessor, setPredecessorgetName, initLogger, toStringpublic DiscreteCosineTransform2(int numberMelFilters,
int cepstrumSize)
public DiscreteCosineTransform2()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class DiscreteCosineTransformps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.protected double[] applyMelCosine(double[] melspectrum)
applyMelCosine in class DiscreteCosineTransformmelspectrum - the MelSpectrum data