You are here: Symbol Reference > RndGenerators Namespace > Classes > TRngStream Class > public > TRngStream.RandomExponential Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TRngStream.RandomExponential Method

Generates an array of samples distributed by Exponential distribution.

Pascal
procedure RandomExponential(const Dst: TMtxVec; const a: double; const mu: double);

Returns random numbers distributed according to the Exponential probability density function (PDF) similar to as defined here Probabilities.ExpPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array which can be accessed via Dst.Values property. The probability density function is defined as: 

 

1 (x-a) f(x) = ------ exp( - ---- ) , x >= a mu mu f(x) = 0, x < a
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!