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 Details

    • BurnInRNG

      public BurnInRNG(RandomNumberGenerator rvg, int burnInSamples)
      Construct a burn-in RNG.
      Parameters:
      rvg - an underlying RNG
      burnInSamples - the number of initial samples to be discarded
  • Method Details

    • nextDouble

      public double nextDouble()
      Description copied from interface: RandomNumberGenerator
      Get the next random double.
      Specified by:
      nextDouble in interface RandomNumberGenerator
      Returns:
      the next random number
    • seed

      public void seed(long... seeds)
      Description copied from interface: Seedable
      Seed the random number/vector/scenario generator to produce repeatable experiments.
      Specified by:
      seed in interface Seedable
      Parameters:
      seeds - the seeds