umontreal.iro.lecuyer.probdist
Class LognormalDistFromMoments
java.lang.Object
umontreal.iro.lecuyer.probdist.ContinuousDistribution
umontreal.iro.lecuyer.probdist.LognormalDist
umontreal.iro.lecuyer.probdist.LognormalDistFromMoments
- All Implemented Interfaces:
- Distribution
public class LognormalDistFromMoments
- extends LognormalDist
Extends the LognormalDist
class with a constructor accepting the
mean m and the variance v of the distribution as arguments.
The mean and variance of a lognormal random variable with
parameters μ and σ are
eμ+σ2/2 and
e2μ+σ2(eσ2 - 1) respectively, so
the parameters are given by
σ2 = ln(v/m2+1) and
μ = ln(m) - σ2/2.
Methods inherited from class umontreal.iro.lecuyer.probdist.LognormalDist |
barF, barF, cdf, cdf, density, density, getInstanceFromMLE, getMean, getMean, getMLE, getMu, getParams, getSigma, getStandardDeviation, getStandardDeviation, getVariance, getVariance, inverseF, inverseF, setParams, toString |
LognormalDistFromMoments
public LognormalDistFromMoments(double mean,
double var)
To submit a bug or ask questions, send an e-mail to
Pierre L'Ecuyer.