Class BurnInRVG
java.lang.Object
dev.nm.stat.random.rng.multivariate.BurnInRVG
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
A burn-in random number generator discards the first M samples. This reduces the effect of the
initial sample on the outcome.
-
Constructor Summary
ConstructorsConstructorDescriptionBurnInRVG
(RandomVectorGenerator rvg, int burnInSamples) Construct a burn-in RVG. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Gets the next random vector.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
BurnInRVG
Construct a burn-in RVG.- Parameters:
rvg
- an underlying RVGburnInSamples
- the number of initial samples to be discarded
-
-
Method Details
-
nextVector
public double[] nextVector()Description copied from interface:RandomVectorGenerator
Gets the next random vector.- Specified by:
nextVector
in interfaceRandomVectorGenerator
- Returns:
- the next random vector
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments.
-