Class UnivariateTimeSeries.Entry<T>
- java.lang.Object
-
- dev.nm.stat.timeseries.datastructure.univariate.UnivariateTimeSeries.Entry<T>
-
- Type Parameters:
T
- the timestamp type
- All Implemented Interfaces:
TimeSeries.Entry<T,Double>
- Direct Known Subclasses:
IntTimeTimeSeries.Entry
,Realization.Entry
- Enclosing interface:
- UnivariateTimeSeries<T extends Comparable<? super T>,E extends UnivariateTimeSeries.Entry<T>>
public static class UnivariateTimeSeries.Entry<T> extends Object implements TimeSeries.Entry<T,Double>
This is theTimeSeries.Entry
for a univariate time series.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
T
getTime()
Get the timestamp.Double
getValue()
Get the entry value.int
hashCode()
-
-
-
Constructor Detail
-
Entry
public Entry(T time, double value)
Construct an instance ofEntry
.- Parameters:
time
- the timestampvalue
- the entry value
-
-
Method Detail
-
getValue
public Double getValue()
Description copied from interface:TimeSeries.Entry
Get the entry value.- Specified by:
getValue
in interfaceTimeSeries.Entry<T,Double>
- Returns:
- the entry value
-
getTime
public T getTime()
Description copied from interface:TimeSeries.Entry
Get the timestamp.- Specified by:
getTime
in interfaceTimeSeries.Entry<T,Double>
- Returns:
- the timestamp
-
-