public class DoubleData extends OVector implements Data
Constructor and Description |
---|
DoubleData(double[] values)
Constructs a new
Data object with values only. |
DoubleData(double[] values,
int sampleRate,
long firstSampleNumber)
Constructs a Data object with the given values, collect time, and first sample number.
|
DoubleData(double[] values,
int sampleRate,
long collectTime,
long firstSampleNumber)
Constructs a Data object with the given values, collect time, and first sample number.
|
Modifier and Type | Method and Description |
---|---|
DoubleData |
clone() |
long |
getCollectTime()
Returns the time in milliseconds at which the audio data is collected.
|
long |
getFirstSampleNumber() |
int |
getSampleRate() |
java.lang.String |
toString() |
public DoubleData(double[] values)
Data
object with values only. All other internal fields like
sampling rate etc. are initialized to -1.values
- source valuespublic DoubleData(double[] values, int sampleRate, long firstSampleNumber)
values
- the data valuessampleRate
- the sample rate of the datafirstSampleNumber
- the position of the first sample in the original datapublic 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 datapublic java.lang.String toString()
public int getSampleRate()
public long getFirstSampleNumber()
public long getCollectTime()
public DoubleData clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException