|
NAG[g05dbc] NAG[nag_random_exp] - Pseudo-random real numbers, (negative) exponential distribution
|
|
Calling Sequence
g05dbc(a)
nag_random_exp(. . .)
Parameters
|
a - float;
|
|
|
On entry: the argument of the distribution. If a is negative, its absolute value is used.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_random_exp (g05dbc) returns a pseudo-random real number taken from a (negative) exponential distribution with mean .
|
|
Description
|
|
The distribution has PDF (probability density function)
The function returns the value , where is a pseudo-random number from a uniform distribution over (0,1), generated by g05cac (nag_random_continuous_uniform).
|
|
Error Indicators and Warnings
|
|
|
|
|
Examples
|
|
>
|
a := 2:
NAG:-g05cbc(0):
NAG:-g05dbc(a);
|
|
|
Download Help Document
Was this information helpful?