public class GammaDistFromMoments extends GammaDist
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.decPrec| Constructor and Description |
|---|
GammaDistFromMoments(double mean,
double var)
Constructs a gamma distribution with
mean mean, and variance var.
|
GammaDistFromMoments(double mean,
double var,
int d)
Constructs a gamma distribution with mean mean,
variance var, and d decimal of precision.
|
barF, barF, barF, cdf, cdf, cdf, density, density, getAlpha, getInstanceFromMLE, getLambda, getMaximumLikelihoodEstimate, getMean, getMean, getMLE, getParams, getStandardDeviation, getStandardDeviation, getVariance, getVariance, inverseF, inverseF, inverseF, setParams, toStringgetXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsuppublic GammaDistFromMoments(double mean,
double var,
int d)
mean - the desired mean.var - the desired variance.d - the number of decimals of precision.public GammaDistFromMoments(double mean,
double var)
mean - the desired mean.var - the desired variance.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.