Class LognormalDist
Defined in File RandomDist.hpp
Class Documentation
-
class LognormalDist
Lognormal distribution.
Returns exp(s * n + m), where n is drawn from an internal NormalDist with zero mean and unit dispersion; since that NormalDist generates deviates in pairs, so does this class. This reproduces libstdc++’s std::lognormal_distribution<double>.
Public Functions
-
inline explicit LognormalDist(const double m = 0.0, const double s = 1.0)
Construct a LognormalDist.
- Parameters:
m – The mean of the logarithm of the deviate
s – The standard deviation of the logarithm of the deviate
-
inline explicit LognormalDist(const double m = 0.0, const double s = 1.0)