edu.cmu.sphinx.frontend.transform
Class DiscreteCosineTransform2

java.lang.Object
  extended by edu.cmu.sphinx.util.props.ConfigurableAdapter
      extended by edu.cmu.sphinx.frontend.BaseDataProcessor
          extended by edu.cmu.sphinx.frontend.transform.DiscreteCosineTransform
              extended by edu.cmu.sphinx.frontend.transform.DiscreteCosineTransform2
All Implemented Interfaces:
DataProcessor, Configurable

public class DiscreteCosineTransform2
extends DiscreteCosineTransform

Applies the optimized MelCosine filter used in pocketsphinx to the given melspectrum.


Field Summary
 
Fields inherited from class edu.cmu.sphinx.frontend.transform.DiscreteCosineTransform
cepstrumSize, melcosine, numberMelFilters, PROP_CEPSTRUM_LENGTH, PROP_NUMBER_FILTERS
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
DiscreteCosineTransform2()
           
DiscreteCosineTransform2(int numberMelFilters, int cepstrumSize)
           
 
Method Summary
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.
 
Methods inherited from class edu.cmu.sphinx.frontend.transform.DiscreteCosineTransform
getData, initialize
 
Methods inherited from class edu.cmu.sphinx.frontend.BaseDataProcessor
getPredecessor, getTimer, setPredecessor
 
Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
getName, initLogger, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscreteCosineTransform2

public DiscreteCosineTransform2(int numberMelFilters,
                                int cepstrumSize)

DiscreteCosineTransform2

public DiscreteCosineTransform2()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Overrides:
newProperties in class DiscreteCosineTransform
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

applyMelCosine

protected double[] applyMelCosine(double[] melspectrum)
Apply the optimized MelCosine filter used in pocketsphinx to the given melspectrum.

Overrides:
applyMelCosine in class DiscreteCosineTransform
Parameters:
melspectrum - the MelSpectrum data
Returns:
MelCepstrum data produced by apply the MelCosine filter to the MelSpectrum data