Documentation of 'umontreal.iro.lecuyer.probdist.GammaDistFromMoments' Java class
GammaDistFromMoments
umontreal.iro.lecuyer.probdist

Class GammaDistFromMoments

  • All Implemented Interfaces:
    Distribution


    public class GammaDistFromMoments
    extends GammaDist
    Extends the GammaDist distribution with constructors accepting the mean μ and variance σ2 as arguments instead of a shape parameter α and a scale parameter λ. Since μ = α/λ, and σ2 = α/λ2, the shape and scale parameters are α = μ2/σ2, and λ = μ/σ2, respectively.
    • Constructor Detail

      • GammaDistFromMoments

        public GammaDistFromMoments(double mean,
                                    double var,
                                    int d)
        Constructs a gamma distribution with mean mean, variance var, and d decimal of precision.
        Parameters:
        mean - the desired mean.
        var - the desired variance.
        d - the number of decimals of precision.
      • GammaDistFromMoments

        public GammaDistFromMoments(double mean,
                                    double var)
        Constructs a gamma distribution with mean mean, and variance var.
        Parameters:
        mean - the desired mean.
        var - the desired variance.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.