|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.stochasticprocess.univariate.integration.sde.PathByIdImpl
public class PathByIdImpl
This class implements some common methods to identify a path or a trajectory of a realization of a stochastic process. We tag each path by an ID so that there is a 1-1 correspondence between a realization and an identifier. Also, the same seed should give arise to the same realization for the purpose of repeated experiments.
| Field Summary | |
|---|---|
TimeGrid |
timePoints
the set of discretized time points |
| Constructor Summary | |
|---|---|
PathByIdImpl(TimeGrid timePoints)
Construct a PathByIdImpl instance. |
|
| Method Summary | |
|---|---|
long |
nextId()
Generate an ID for this particular path. |
void |
seed(long seed)
Seed the random number generator to produce repeatable realizations. |
int |
size()
the number of time points |
double |
t(int pos)
the pos-th time point in the time grid discretization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TimeGrid timePoints
| Constructor Detail |
|---|
public PathByIdImpl(TimeGrid timePoints)
timePoints - specifying the time points in a grid| Method Detail |
|---|
public int size()
public double t(int pos)
pos - the index to the grid point
public void seed(long seed)
seed - the seedpublic long nextId()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||