SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.univariate
Interface TimeSeries<T>

All Superinterfaces:
TimeSeries<T,java.lang.Double>
All Known Subinterfaces:
Realization, Realization, TimeSeries
All Known Implementing Classes:
RandomWalk.Realization

public interface TimeSeries<T>
extends TimeSeries<T,java.lang.Double>

This represents a univariate time series indexed by some notion of time. The entries are in the pair:(timestamp, double).


Nested Class Summary
static class TimeSeries.Entry<T>
          the TimeSeries.Entry for a univariate time series
static class TimeSeries.Iterator<E extends TimeSeries.Entry<?>>
          the Iterator to read a univariate time series
 
Method Summary
 TimeSeries.Iterator<? extends TimeSeries.Entry<T>> iterator()
          Get an Iterator to read this univariate time series.
 double[] toArray()
          Convert this time series into an array.
 
Methods inherited from interface com.numericalmethod.suanshu.stats.timeseries.TimeSeries
size
 

Method Detail

iterator

TimeSeries.Iterator<? extends TimeSeries.Entry<T>> iterator()
Get an Iterator to read this univariate time series.

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

toArray

double[] toArray()
Convert this time series into an array.

Returns:
the array representation of the time series

SuanShu, a Java numerical and statistical library

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