Random.NextExponential Method |
Namespace: Imsl.Stat
The probability density function is
; for
.
NextExponential uses an antithetic inverse CDF technique; that is, a uniform random deviate U is generated and the inverse of the exponential cumulative distribution function is evaluated at 1.0 - U to yield the exponential deviate.
Deviates from the exponential distribution with mean THETA can be generated by using NextExponential and then multiplying the result by THETA.