All Implemented Interfaces:
RandomVectorGenerator, Seedable

public class IID extends Object implements RandomVectorGenerator
An i.i.d. random vector has elements drawn from the same distribution.
  • Constructor Details

    • IID

      public IID(RandomNumberGenerator rng, int length)
      Construct a rvg that outputs vectors that have i.i.d. elements drawn from the same distribution.
      rng - the underlying (univariate) random number generator
      length - the length of the output vectors
  • Method Details

    • 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
      seeds - the seeds
    • nextVector

      public double[] nextVector()
      Description copied from interface: RandomVectorGenerator
      Gets the next random vector.
      Specified by:
      nextVector in interface RandomVectorGenerator
      the next random vector