Probabilities::LogNormalStat Function

void LogNormalStat(double Mu, double sigma, double &AMean, double &AVariance, double &ASkewness, double &AKurtosis);

Log-normal distribution moments (mean, variance, skewness, excess kurtosis).

#NameTypeDescription
1MudoubleLocation parameter: mean of ln(x), any real value.
2sigmadoubleScale parameter: standard deviation of ln(x), real value > 0.
3AMeandouble &Returns the mean, = exp(Mu + sigma^2/2).
4AVariancedouble &Returns the variance, = (exp(sigma^2)-1) exp(2 Mu + sigma^2).
5ASkewnessdouble &Returns the skewness, = (exp(sigma^2)+2) sqrt(exp(sigma^2)-1).
6AKurtosisdouble &Returns the EXCESS kurtosis, = exp(4 sigma^2)+2 exp(3 sigma^2)+3 exp(2 sigma^2)-6.
Remarks:

Returns the moments of the log-normal distribution. If sigma <= 0 all four outputs are NAN.

Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler