void RandomLogNormal(TMtxVec *Dst, const double mu, const double sigma, const double b, const double beta);
Generates an array of samples distributed Lognormally.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtxVec * | |
| 2 | mu | const double | |
| 3 | sigma | const double | |
| 4 | b | const double | |
| 5 | beta | const 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