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

Class InverseGaussianGen

  • Direct Known Subclasses:
    InverseGaussianMSHGen


    public class InverseGaussianGen
    extends RandomVariateGen
    This class implements random variate generators for the inverse Gaussian distribution with location parameter μ > 0 and scale parameter λ > 0. The density function of this distribution is

    f (x) = (λ)1/2/(2πx3)  e-λ(x-μ)2/(2μ2x)         for x > 0.

    • Constructor Detail

      • InverseGaussianGen

        public InverseGaussianGen(RandomStream s,
                                  double mu,
                                  double lambda)
        Creates an inverse Gaussian random variate generator with parameters μ = mu and λ = lambda, using stream s.
      • InverseGaussianGen

        public InverseGaussianGen(RandomStream s,
                                  InverseGaussianDist dist)
        Creates a new generator for the distribution dist, using stream s.
    • Method Detail

      • nextDouble

        public static double nextDouble(RandomStream s,
                                        double mu,
                                        double lambda)
        Generates a variate from the inverse gaussian distribution with location parameter μ > 0 and scale parameter λ > 0.
      • getMu

        public double getMu()
        Returns the parameter μ of this object.
      • getLambda

        public double getLambda()
        Returns the parameter λ of this object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.