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