TRngStream::RandomLogNormal Method

void RandomLogNormal(TMtxVec *Dst, const double mu, const double sigma, const double b, const double beta);

Generates an array of samples distributed Lognormally.

#NameTypeDescription
1DstTMtxVec *
2muconst double
3sigmaconst double
4bconst double
5betaconst double
Remarks:

Returns random numbers distributed according to the Lognormal probability density function (PDF) similar to as defined here Probabilities::LogNormalPDF. Additional parameters are "b" is displacement and beta is scale factor:

f(x) = 1/(sigma (x-b)sqrt(2pi)) exp(-((ln(x-b)/beta - mu)^2)/( ) 2sigma^2), x > b f(x) = 0, x <= b

The number of samples generated is defined with the Dst.Length parameter. The result can be accessed via Dst.Values property.

Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler