Class BurnInRNG
- java.lang.Object
-
- dev.nm.stat.random.rng.univariate.BurnInRNG
-
- All Implemented Interfaces:
RandomNumberGenerator
,Seedable
public class BurnInRNG extends Object implements RandomNumberGenerator
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 BurnInRNG(RandomNumberGenerator rvg, int burnInSamples)
Construct a burn-in RNG.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
nextDouble()
Get the next randomdouble
.void
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Constructor Detail
-
BurnInRNG
public BurnInRNG(RandomNumberGenerator rvg, int burnInSamples)
Construct a burn-in RNG.- Parameters:
rvg
- an underlying RNGburnInSamples
- the number of initial samples to be discarded
-
-
Method Detail
-
nextDouble
public double nextDouble()
Description copied from interface:RandomNumberGenerator
Get the next randomdouble
.- Specified by:
nextDouble
in interfaceRandomNumberGenerator
- Returns:
- the next random number
-
-