public abstract static class MultiVariateRealization.Iterator extends java.lang.Object implements java.util.Iterator<MultiVariateRealization.Entry>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
d
the dimension of the Brownian motion
|
| Constructor and Description |
|---|
Iterator(int d,
int size,
long seed)
Construct a realization of a multivariate stochastic process.
|
| Modifier and Type | Method and Description |
|---|---|
protected Vector |
dB(double dt) |
boolean |
hasNext() |
MultiVariateRealization.Entry |
next() |
Vector |
nextValue() |
abstract double |
t(int index)
Get the current timestamp of the realization.
|
abstract Vector |
xt(int index)
Get the current value of the realization.
|
protected Vector |
Zt()
Get a d-dimension Gaussian innovation.
|
public Iterator(int d,
int size,
long seed)
d - the dimension of the Brownian motionsize - the length of the time seriesseed - seeding the same seed gives arise to the same realizationpublic abstract double t(int index)
index - the index to the current Entrypublic abstract Vector xt(int index)
index - the index to the current Entrypublic boolean hasNext()
hasNext in interface java.util.Iterator<MultiVariateRealization.Entry>public MultiVariateRealization.Entry next()
next in interface java.util.Iterator<MultiVariateRealization.Entry>public Vector nextValue()
protected Vector Zt()
protected Vector dB(double dt)