|
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.brownian.Brownian
com.numericalmethod.suanshu.stats.stochasticprocess.univariate.brownian.RandomWalk
public class RandomWalk
This is the Random Walk construction of a univariate Brownian motion.
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.
| Field Summary |
|---|
| Fields inherited from class com.numericalmethod.suanshu.stats.stochasticprocess.univariate.brownian.Brownian |
|---|
mu, sigma |
| Constructor Summary | |
|---|---|
RandomWalk(int T)
Construct a univariate Brownian motion at even time points, [0, 1, ......, T]. |
|
RandomWalk(TimeGrid timePoints)
Construct a univariate Brownian motion at time points specified. |
|
| Method Summary | |
|---|---|
RandomWalk.Realization |
realization(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. |
| Methods inherited from class com.numericalmethod.suanshu.stats.stochasticprocess.univariate.brownian.Brownian |
|---|
dXt, getNewFt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomWalk(TimeGrid timePoints)
timePoints - specifying the time points in a gridpublic RandomWalk(int T)
T - the length of the grid| Method Detail |
|---|
public RandomWalk.Realization realization(double x0)
Construction
realization in interface Constructionx0 - the starting point of the trajectory
public void seed(long seed)
Construction
seed in interface Constructionseed - seeding the same seed gives arise to the same realization
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||