Class Ziggurat2000Exp

java.lang.Object
dev.nm.stat.random.rng.univariate.exp.Ziggurat2000Exp
All Implemented Interfaces:
RandomExpGenerator, RandomNumberGenerator, Seedable

public class Ziggurat2000Exp extends Object implements RandomExpGenerator
This implements the ziggurat algorithm to sample from the exponential distribution.
See Also:
  • Constructor Details

    • Ziggurat2000Exp

      public Ziggurat2000Exp()
  • 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
      Parameters:
      seeds - the seeds
    • 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