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 Details

    • BurnInRVG

      public BurnInRVG(RandomVectorGenerator rvg, int burnInSamples)
      Construct a burn-in RVG.
      Parameters:
      rvg - an underlying RVG
      burnInSamples - 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 interface RandomVectorGenerator
      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.
      Specified by:
      seed in interface Seedable
      Parameters:
      seeds - the seeds