public class RandomWalk extends Brownian implements Construction
For constant μ and σ, this method is exact in the sense that the joint distribution of the simulated values coincides with the joint distribution of the corresponding Brownian motion a the time grid points. Please note that this says nothing about what happens between two successive grid points.
For time-dependent μ and σ, this method in general introduce discretization error even at the time grid points, because the increments will no longer have exactly the correct mean and variance.
| Constructor and Description |
|---|
RandomWalk(int d,
int T)
Construct a multi-dimensional Brownian motion at even time points, [0, 1, ......, T].
|
RandomWalk(int d,
TimeGrid timePoints)
Construct a multi-dimensional Brownian motion at time points specified.
|
| Modifier and Type | Method and Description |
|---|---|
MultiVariateRealization |
nextRealization(Vector x0)
Construct a realization of a stochastic process.
|
void |
seed(long seed)
Seed the construction process so that we may generate the same realizations.
|
public RandomWalk(int d,
TimeGrid timePoints)
d - the dimension of the Brownian motiontimePoints - specifying the time points in a gridpublic RandomWalk(int d,
int T)
d - the dimension of the Brownian motionT - the length of the gridpublic MultiVariateRealization nextRealization(Vector x0)
ConstructionnextRealization in interface Constructionx0 - the starting point of the trajectorypublic void seed(long seed)
Constructionseed in interface Constructionseed - seeding the same seed gives arise to the same realization