Class InverseTransformSamplingEVDRNG

java.lang.Object
dev.nm.stat.evt.evd.univariate.rng.InverseTransformSamplingEVDRNG
All Implemented Interfaces:
RandomNumberGenerator, Seedable

public class InverseTransformSamplingEVDRNG extends Object implements RandomNumberGenerator
Generate random numbers according to a given univariate extreme value distribution, by inverse transform sampling.
  • Constructor Details

    • InverseTransformSamplingEVDRNG

      public InverseTransformSamplingEVDRNG(UnivariateEVD dist)
      Create an instance with the given extreme value distribution.
      Parameters:
      dist - the extreme value distribution
    • InverseTransformSamplingEVDRNG

      public InverseTransformSamplingEVDRNG(UnivariateEVD dist, long... seeds)
      Create an instance with the given extreme value distribution and seeds for this random number generator.
      Parameters:
      dist - the extreme value distribution
      seeds - the seeds
  • 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