public class RandomWalk extends java.lang.Object implements Construction
Given an SDE, we compute the increments of the stochastic process. A realization is the cumulative summation of these independent increments.
| Modifier and Type | Class and Description |
|---|---|
class |
RandomWalk.Realization |
| Modifier and Type | Field and Description |
|---|---|
DiscretizedSDE |
sde
the SDE specification, in discretized form
|
TimeGrid |
timePoints
the set of discretized time points
|
| Constructor and Description |
|---|
RandomWalk(DiscretizedSDE sde,
TimeGrid timePoints)
Construct a univariate stochastic process from an SDE.
|
| Modifier and Type | Method and Description |
|---|---|
RandomWalk.Realization |
nextRealization(double x0)
Construct a realization of the stochastic process.
|
void |
seed(long seed)
Seed the construction process so that we may generate the same realizations.
|
public final DiscretizedSDE sde
public final TimeGrid timePoints
public RandomWalk(DiscretizedSDE sde, TimeGrid timePoints)
sde - an SDEtimePoints - specifying the time points in a gridpublic RandomWalk.Realization nextRealization(double 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