SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.univariate.realtime
Interface TimeSeries

All Superinterfaces:
TimeSeries<java.lang.Integer,java.lang.Double>

public interface TimeSeries
extends TimeSeries<java.lang.Integer>

This represents a univariate time series indexed by integers. The entries are in the pair:(n, double).

This time of series is often seen in classical time series analysis, where the data points are equally spaced.


Nested Class Summary
static class TimeSeries.Entry
          the TimeSeries.Entry for an integer-indexed univariate time series
static class TimeSeries.Iterator
          the Iterator to read an integer-indexed univariate time series
 
Method Summary
 double get(int t)
          Get the value at time t.
 TimeSeries.Iterator iterator()
          Get an Iterator to read this integer-indexed univariate time series.
 
Methods inherited from interface com.numericalmethod.suanshu.stats.timeseries.univariate.TimeSeries
toArray
 
Methods inherited from interface com.numericalmethod.suanshu.stats.timeseries.TimeSeries
size
 

Method Detail

iterator

TimeSeries.Iterator iterator()
Get an Iterator to read this integer-indexed univariate time series.

Specified by:
iterator in interface TimeSeries<java.lang.Integer,java.lang.Double>
Returns:
an iterator

get

double get(int t)
Get the value at time t.

Parameters:
t - the time index, ranging from 1 up to T
Returns:
ts[t]

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.