|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.frontend.FloatData
public class FloatData
A Data object that holds data of primitive type float.
Data
,
Serialized FormConstructor Summary | |
---|---|
FloatData(float[] values,
int sampleRate,
long collectTime,
long firstSampleNumber)
Constructs a Data object with the given values, sample rate, collect time, and first sample number. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this Data object. |
long |
getCollectTime()
Returns the time in milliseconds at which the audio data is collected. |
long |
getFirstSampleNumber()
Returns the position of the first sample in the original data. |
int |
getSampleRate()
Returns the sample rate of this data. |
float[] |
getValues()
Returns the values of this DoubleData object. |
static FloatData |
toFloatData(Data data)
Converts a given Data-object into a FloatData if possible. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatData(float[] values, int sampleRate, long collectTime, long firstSampleNumber)
values
- the data valuessampleRate
- the sample rate of the datacollectTime
- the time at which this data is collectedfirstSampleNumber
- the position of the first sample in the original dataMethod Detail |
---|
public float[] getValues()
public int getSampleRate()
public long getFirstSampleNumber()
public long getCollectTime()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public static FloatData toFloatData(Data data)
FloatData
if possible.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |