SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.univariate.realtime
Class SimpleTimeSeries.Iterator

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.timeseries.TimeSeries.Iterator<E>
      extended by com.numericalmethod.suanshu.stats.timeseries.univariate.TimeSeries.Iterator<TimeSeries.Entry>
          extended by com.numericalmethod.suanshu.stats.timeseries.univariate.realtime.TimeSeries.Iterator
              extended by com.numericalmethod.suanshu.stats.timeseries.univariate.realtime.SimpleTimeSeries.Iterator
All Implemented Interfaces:
java.util.Iterator<TimeSeries.Entry>
Enclosing class:
SimpleTimeSeries

public class SimpleTimeSeries.Iterator
extends TimeSeries.Iterator

the Iterator to read a SimpleTimeSeries


Field Summary
 
Fields inherited from class com.numericalmethod.suanshu.stats.timeseries.TimeSeries.Iterator
length, pos, ts
 
Method Summary
 TimeSeries.Entry next()
          Get the next entry in the time series, if any.
 double nextValue()
          Get the next value in the time series.
 
Methods inherited from class com.numericalmethod.suanshu.stats.timeseries.TimeSeries.Iterator
hasNext, position, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

nextValue

public double nextValue()
Description copied from class: TimeSeries.Iterator
Get the next value in the time series.

Specified by:
nextValue in class TimeSeries.Iterator<TimeSeries.Entry>
Returns:
the next value

next

public TimeSeries.Entry next()
Description copied from class: TimeSeries.Iterator
Get the next entry in the time series, if any.

Specified by:
next in interface java.util.Iterator<TimeSeries.Entry>
Specified by:
next in class TimeSeries.Iterator<TimeSeries.Entry>
Returns:
the next entry

SuanShu, a Java numerical and statistical library

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