Class AbstractNonUniformGenerator

java.lang.Object
org.hipparchus.random.AbstractNonUniformGenerator
All Implemented Interfaces:
NonUniformGenerator
Direct Known Subclasses:
ExponentialGenerator, GammaGenerator, NakagamiGenerator

public abstract class AbstractNonUniformGenerator extends Object implements NonUniformGenerator
Base class for generating non-uniform random variates from an underlying uniform generator.
  • Constructor Details

    • AbstractNonUniformGenerator

      public AbstractNonUniformGenerator(RandomGenerator random)
      Simple constructor.
      Parameters:
      random - underlying random generator
  • Method Details

    • nextUniform

      protected double nextUniform()
      Generate next uniform variate.
      Returns:
      next uniform variate between 0 and 1
    • nextNormal

      protected double nextNormal()
      Generate next normal variate.
      Returns:
      next normal variate witm mean 0 and standard deviation 1