Class RandomRealizationOfRandomProcess
java.lang.Object
dev.nm.stat.stochasticprocess.univariate.random.RandomRealizationOfRandomProcess
- All Implemented Interfaces:
Seedable
,RandomRealizationGenerator
This class generates random realizations from a random/stochastic process.
-
Constructor Summary
ConstructorsConstructorDescriptionRandomRealizationOfRandomProcess
(RandomProcess process, int size) Construct a random realization generator from a random/stochastic process.RandomRealizationOfRandomProcess
(RandomProcess process, int size, RandomLongGenerator uniform) Construct a random realization generator from a random/stochastic process.RandomRealizationOfRandomProcess
(DiscreteSDE sde, TimeGrid timeGrid, double x0) Construct a random realization generator from a discrete SDE.RandomRealizationOfRandomProcess
(SDE sde, int size) Construct a random realization generator from an SDE.RandomRealizationOfRandomProcess
(SDE sde, TimeGrid timeGrid, double x0) Construct a random realization generator from an SDE. -
Method Summary
Modifier and TypeMethodDescriptionConstruct a realization of a univariate stochastic process.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
RandomRealizationOfRandomProcess
public RandomRealizationOfRandomProcess(RandomProcess process, int size, RandomLongGenerator uniform) Construct a random realization generator from a random/stochastic process.- Parameters:
process
- a random processsize
- the size of the realizationsuniform
- a uniform random number generator
-
RandomRealizationOfRandomProcess
Construct a random realization generator from a random/stochastic process.- Parameters:
process
- a random processsize
- the size of the realizations
-
RandomRealizationOfRandomProcess
Construct a random realization generator from a discrete SDE.- Parameters:
sde
- a discrete approximation of an SDEtimeGrid
- specifying the time points in a gridx0
- the initial value of the process
-
RandomRealizationOfRandomProcess
Construct a random realization generator from an SDE.- Parameters:
sde
- a continuous time SDEtimeGrid
- specifying the time points in a gridx0
- the initial value of the process
-
RandomRealizationOfRandomProcess
Construct a random realization generator from an SDE.- Parameters:
sde
- a continuous time SDEsize
- the size of the realizations
-
-
Method Details
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextRealization
Description copied from interface:RandomRealizationGenerator
Construct a realization of a univariate stochastic process.- Specified by:
nextRealization
in interfaceRandomRealizationGenerator
- Returns:
- a realization
-