Documentation of 'umontreal.iro.lecuyer.randvar.ExponentialGen' Java class
ExponentialGen
umontreal.iro.lecuyer.randvar

Class ExponentialGen



  • public class ExponentialGen
    extends RandomVariateGen
    This class implements random variate generators for the exponential distribution. The density is

    f (x) = λe-λx         for x >= 0,

    where λ > 0.

    The (non-static) nextDouble method simply calls inverseF on the distribution.

    • Constructor Detail

      • ExponentialGen

        public ExponentialGen(RandomStream s,
                              double lambda)
        Creates an exponential random variate generator with parameter λ = lambda, using stream s.
      • ExponentialGen

        public ExponentialGen(RandomStream s,
                              ExponentialDist dist)
        Creates a new generator for the exponential distribution dist and stream s.
    • Method Detail

      • nextDouble

        public static double nextDouble(RandomStream s,
                                        double lambda)
        Uses inversion to generate a new exponential variate with parameter λ = lambda, using stream s.
      • getLambda

        public double getLambda()
        Returns the λ associated with this object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.