|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.util.machlearn.OVector
edu.cmu.sphinx.frontend.DoubleData
inpro.pitch.PitchedDoubleData
public class PitchedDoubleData
Field Summary | |
---|---|
(package private) java.util.List<PitchCandidate> |
candidates
all the pitch candidates for this frame, i.e. peaks in the autocorrelation function |
(package private) boolean |
deferred
whether voicing information is already available |
(package private) double |
pitchHz
the pitch in Hz for this frame |
(package private) java.lang.Double |
power
the signal power |
private ddf.minim.effects.RevisedBCurveFilter |
rbcFilter
|
(package private) java.lang.Double |
rbcFilteredPower
|
(package private) boolean |
voiced
whether the frame was classified as voiced |
(package private) double |
voicing
more informative voicing strength on a scale from 0 to 1 |
Fields inherited from class edu.cmu.sphinx.util.machlearn.OVector |
---|
values |
Constructor Summary | |
---|---|
PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data)
use this if pitch calculation has not yet completed (add results later with setPitch() |
|
PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data,
boolean voiced,
double voicing,
double pitch,
java.util.List<PitchCandidate> candidates)
use this if calculation has already finished and all values can be set |
Method Summary | |
---|---|
java.util.List<PitchCandidate> |
getCandidates()
|
double |
getPitchCentTo110Hz()
|
double |
getPitchHz()
|
double |
getPower()
|
double |
getRbcFilteredPower()
|
double |
getVoicing()
|
boolean |
isVoiced()
|
(package private) void |
setPitch(java.util.List<PitchCandidate> candidates,
double pitchHz,
boolean voiced,
double voicing)
set pitch-relevant properties after construction |
void |
setPitchHz(double hz)
|
void |
setVoiced(boolean v)
|
static double |
signalPower(double[] samples)
calculate signal power (averaged per sample) |
java.lang.String |
toString()
|
Methods inherited from class edu.cmu.sphinx.frontend.DoubleData |
---|
clone, getCollectTime, getFirstSampleNumber, getSampleRate |
Methods inherited from class edu.cmu.sphinx.util.machlearn.OVector |
---|
dimension, equals, getValues, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
boolean deferred
boolean voiced
double voicing
double pitchHz
java.lang.Double power
java.lang.Double rbcFilteredPower
private ddf.minim.effects.RevisedBCurveFilter rbcFilter
java.util.List<PitchCandidate> candidates
Constructor Detail |
---|
public PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data)
public PitchedDoubleData(edu.cmu.sphinx.frontend.DoubleData data, boolean voiced, double voicing, double pitch, java.util.List<PitchCandidate> candidates)
Method Detail |
---|
void setPitch(java.util.List<PitchCandidate> candidates, double pitchHz, boolean voiced, double voicing)
public void setVoiced(boolean v)
public boolean isVoiced()
public double getVoicing()
public void setPitchHz(double hz)
public double getPitchHz()
public double getPitchCentTo110Hz()
public static double signalPower(double[] samples)
public double getPower()
public double getRbcFilteredPower()
public java.util.List<PitchCandidate> getCandidates()
public java.lang.String toString()
toString
in class edu.cmu.sphinx.frontend.DoubleData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |