|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.util.props.ConfigurableAdapter
edu.cmu.sphinx.frontend.BaseDataProcessor
edu.cmu.sphinx.frontend.util.Dither
public class Dither
Adds a uniformly distribued dithering to a signal.
| Field Summary | |
|---|---|
static java.lang.String |
PROP_MAX_DITHER
The maximal value which could be added/substracted to/from the signal |
static java.lang.String |
PROP_MAX_VAL
The maximal value of dithered values. |
static java.lang.String |
PROP_MIN_VAL
The minimal value of dithered values. |
static java.lang.String |
PROP_USE_RANDSEED
The name of the sphinx property about using random seed or not |
| Constructor Summary | |
|---|---|
Dither()
|
|
Dither(double ditherMax,
boolean useRandSeed,
double maxValue,
double minValue)
|
|
| Method Summary | |
|---|---|
Data |
getData()
Returns the next DoubleData object, which is a dithered version of the input |
void |
initialize()
Initializes this DataProcessor. |
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, setPredecessor |
| Methods inherited from class edu.cmu.sphinx.util.props.ConfigurableAdapter |
|---|
getName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@S4Double(defaultValue=0.0) public static final java.lang.String PROP_MAX_DITHER
@S4Double(defaultValue=1.7976931348623157E308) public static final java.lang.String PROP_MAX_VAL
@S4Double(defaultValue=-1.7976931348623157E308) public static final java.lang.String PROP_MIN_VAL
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_USE_RANDSEED
| Constructor Detail |
|---|
public Dither(double ditherMax,
boolean useRandSeed,
double maxValue,
double minValue)
public Dither()
| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void initialize()
BaseDataProcessor
initialize in interface DataProcessorinitialize in class BaseDataProcessor
public Data getData()
throws DataProcessingException
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processing error occurred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||