edu.cmu.sphinx.frontend.filter
Class Dither

java.lang.Object
  extended by edu.cmu.sphinx.frontend.BaseDataProcessor
      extended by edu.cmu.sphinx.frontend.filter.Dither
All Implemented Interfaces:
DataProcessor, Configurable

public class Dither
extends BaseDataProcessor

Implements a dither for the incoming packet. The small random noise is added to the signal to avoid floating point errors and prevent the energy from being zero.

Other Dataobjects are passed along unchanged through this Dither processor.


Constructor Summary
Dither()
           
 
Method Summary
 Data getData()
          Returns the next Data object being processed by this Dither, or if it is a Signal, it is returned without modification.
 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, initialize, setPredecessor, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dither

public Dither()
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 BaseDataProcessor
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

getData

public Data getData()
             throws DataProcessingException
Returns the next Data object being processed by this Dither, or if it is a Signal, it is returned without modification.

Specified by:
getData in interface DataProcessor
Specified by:
getData in class BaseDataProcessor
Returns:
the next available Data object, returns null if no Data object is available
Throws:
DataProcessingException - if there is a processing error
See Also:
Data