SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.stochasticprocess.univariate.integration.sde
Class RandomWalk.Iterator

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

public class RandomWalk.Iterator
extends Realization.Iterator

This iterates a deterministic realization (time series) of a univariate stochastic process. The construction is done by Random Walk.


Field Summary
 
Fields inherited from class com.numericalmethod.suanshu.stats.timeseries.TimeSeries.Iterator
length, pos, ts
 
Method Summary
 double t(int pos)
          Get the current timestamp of the realization.
 double xt(int pos)
          Get the current value of the realization.
 
Methods inherited from class com.numericalmethod.suanshu.stats.stochasticprocess.univariate.Realization.Iterator
dB, next, nextValue, Zt
 
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

t

public double t(int pos)
Description copied from class: Realization.Iterator
Get the current timestamp of the realization.

Specified by:
t in class Realization.Iterator
Parameters:
pos - the index to the current Entry
Returns:
the current timestamp

xt

public double xt(int pos)
Get the current value of the realization.

This is an implementation of the Random Walk construction.

Specified by:
xt in class Realization.Iterator
Parameters:
pos - the index to the current Entry
Returns:
the current value

SuanShu, a Java numerical and statistical library

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