Skip to main content

Lognormal

Models a random variable with a normally distributed logarithm with log-mean m (with default value 0.0) and log-deviation s (with default value 1.0).

The probability density is given by,

f(xm,s)=1sx2πexp(12(ln(x)ms)2).f(x | m, s) = \frac{1}{sx\sqrt{2\pi}}\exp\left(-\frac{1}{2}\left(\frac{\ln(x)-m}{s}\right)^2\right).

Constructors

Lognormal(const Lognormal distribution) -> Lognormal

Copy constructor for Lognormal distribution.

Parameters

  • distribution: Lognormal distribution to be copied

Symbols

NameDescription
=Copy assignment operator for Lognormal distribution.

Members

NameDescription
mLog-mean
maxReturns the maximum possible value from the distribution
minReturns the minimum possible value from the distribution
sLog-standard deviation
sampleSample from distribution.