|
|||||||||
| 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 Form| Constructor 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 | |
|---|---|
FloatData |
clone()
|
long |
getCollectTime()
Returns the time in milliseconds at which the audio data is collected. |
long |
getFirstSampleNumber()
|
int |
getSampleRate()
|
float[] |
getValues()
|
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 data| Method Detail |
|---|
public float[] getValues()
public int getSampleRate()
public long getFirstSampleNumber()
public long getCollectTime()
public FloatData clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic static FloatData toFloatData(Data data)
FloatData if possible.
data -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||