|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.features.PitchAndPowerDumper
public class PitchAndPowerDumper
Field Summary | |
---|---|
(package private) int |
counter
|
(package private) java.util.LinkedList<java.lang.Double> |
powList
|
(package private) java.util.LinkedList<java.lang.Double> |
rbcList
|
Constructor Summary | |
---|---|
PitchAndPowerDumper()
|
Method Summary | |
---|---|
void |
newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
|
void |
newSignalFeatures(double logEnergy,
boolean voicing,
double pitch)
|
void |
newSignalFeatures(int frame,
double power,
boolean voicing,
double pitch)
Method called when a new set of signal features is available |
private static double |
percentileFilter(java.util.List<java.lang.Double> list)
|
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int counter
java.util.LinkedList<java.lang.Double> powList
java.util.LinkedList<java.lang.Double> rbcList
Constructor Detail |
---|
public PitchAndPowerDumper()
Method Detail |
---|
public void newSignalFeatures(double logEnergy, boolean voicing, double pitch)
private static double percentileFilter(java.util.List<java.lang.Double> list)
public void newSignalFeatures(int frame, double power, boolean voicing, double pitch)
SignalFeatureListener
newSignalFeatures
in interface SignalFeatureListener
frame
- the frame number for this resultpower
- average power per sample in the frame
param rbcpower average power per sample after filtering the frame with a revised B-curve filtervoicing
- whether this frame is voicedpitch
- pitch for this frame in cent relative to 100 Hzpublic void reset()
reset
in interface edu.cmu.sphinx.instrumentation.Resetable
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps) throws edu.cmu.sphinx.util.props.PropertyException
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
edu.cmu.sphinx.util.props.PropertyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |