org.encog.ml.data.temporal
Class TemporalPoint
- java.lang.Object
-
- org.encog.ml.data.temporal.TemporalPoint
-
- All Implemented Interfaces:
- java.lang.Comparable<TemporalPoint>
- Direct Known Subclasses:
- MarketPoint
public class TemporalPoint extends java.lang.Object implements java.lang.Comparable<TemporalPoint>
A temporal point is all of the data captured at one point in time to be used for prediction. One or more data items might be captured at this point. The TemporalDataDescription class is used to describe each of these data items captured at each point.
-
-
Constructor Summary
Constructors Constructor and Description TemporalPoint(int size)Construct a temporal point of the specified size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(TemporalPoint that)double[]getData()doublegetData(int index)Get the data at the specified index.intgetSequence()voidsetData(double[] data)voidsetData(int index, double d)Set the data at the specified index.voidsetSequence(int sequence)java.lang.StringtoString()
-
-
-
Constructor Detail
-
TemporalPoint
public TemporalPoint(int size)
Construct a temporal point of the specified size.- Parameters:
size- The size to create the temporal point for.
-
-
Method Detail
-
compareTo
public int compareTo(TemporalPoint that)
- Specified by:
compareToin interfacejava.lang.Comparable<TemporalPoint>
-
getData
public double[] getData()
- Returns:
- the data
-
getData
public double getData(int index)
Get the data at the specified index.- Parameters:
index- The index to get the data at.- Returns:
- The data at the specified index.
-
getSequence
public int getSequence()
- Returns:
- The sequence for this point.
-
setData
public void setData(double[] data)
- Parameters:
data- the data to set
-
setData
public void setData(int index, double d)Set the data at the specified index.- Parameters:
index- The index to set the data at.d- The data to set.
-
setSequence
public void setSequence(int sequence)
- Parameters:
sequence- the sequence to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG