org.encog.ml.data.temporal
public class TemporalPoint extends Object implements Comparable<TemporalPoint>
Constructor and Description |
---|
TemporalPoint(int size)
Construct a temporal point of the specified size.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TemporalPoint that) |
double[] |
getData() |
double |
getData(int index)
Get the data at the specified index.
|
int |
getSequence() |
void |
setData(double[] data) |
void |
setData(int index,
double d)
Set the data at the specified index.
|
void |
setSequence(int sequence) |
String |
toString() |
public TemporalPoint(int size)
size
- The size to create the temporal point for.public int compareTo(TemporalPoint that)
compareTo
in interface Comparable<TemporalPoint>
public double[] getData()
public double getData(int index)
index
- The index to get the data at.public int getSequence()
public void setData(double[] data)
data
- the data to setpublic void setData(int index, double d)
index
- The index to set the data at.d
- The data to set.public void setSequence(int sequence)
sequence
- the sequence to setCopyright © 2014. All Rights Reserved.