edu.cmu.sphinx.frontend.feature
Class BatchAGC

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

public class BatchAGC
extends BaseDataProcessor

Applies automatic gain control (CMN)


Field Summary
private  double agc
           
private  java.util.List<Data> cepstraList
           
 
Fields inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter
logger
 
Constructor Summary
BatchAGC()
           
 
Method Summary
 Data getData()
          Returns the next Data object, which is a normalized cepstrum.
 void initialize()
          Initializes this BatchCMN.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
private  void normalizeList()
          Normalizes the list of Data.
private  int readUtterance()
          Reads the cepstra of the entire Utterance into the cepstraList.
 
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
 

Field Detail

cepstraList

private java.util.List<Data> cepstraList

agc

private double agc
Constructor Detail

BatchAGC

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

initialize

public void initialize()
Initializes this BatchCMN.

Specified by:
initialize in interface DataProcessor
Overrides:
initialize in class BaseDataProcessor

getData

public Data getData()
             throws DataProcessingException
Returns the next Data object, which is a normalized cepstrum. Signal objects are returned unmodified.

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 an error processing data

readUtterance

private int readUtterance()
                   throws DataProcessingException
Reads the cepstra of the entire Utterance into the cepstraList.

Returns:
the number cepstra (with Data) read
Throws:
DataProcessingException - if an error occurred reading the Data

normalizeList

private void normalizeList()
Normalizes the list of Data.