|
|||||||||
| 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
public class DoubleData
A Data object that holds data of primitive type double.
| Constructor Summary | |
|---|---|
DoubleData(double[] values)
Constructs a new Data object with values only. |
|
DoubleData(double[] values,
int sampleRate,
long collectTime,
long firstSampleNumber)
Constructs a Data object with the given values, 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 the data. |
java.lang.String |
toString()
Returns a string that describes this DoubleData. |
| Methods inherited from class edu.cmu.sphinx.util.machlearn.OVector |
|---|
dimension, equals, getValues, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleData(double[] values)
Data object with values only. All other internal fields like
sampling rate etc. are initialized to -1.
public DoubleData(double[] 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 java.lang.String toString()
toString in class OVectorpublic int getSampleRate()
public long getFirstSampleNumber()
public long getCollectTime()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||