nag_rand_lognormal (g05smc) generates a vector of pseudorandom numbers from a log-normal distribution with parameters and .
The distribution has PDF (probability density function)
i.e.,
is normally distributed with mean
and variance
. nag_rand_lognormal (g05smc) evaluates
, where the
are generated by
nag_rand_normal (g05skc) with mean
and variance
, for
.
One of the initialization functions
nag_rand_init_repeatable (g05kfc) (for a repeatable sequence if computed sequentially) or
nag_rand_init_nonrepeatable (g05kgc) (for a non-repeatable sequence) must be called prior to the first call to nag_rand_lognormal (g05smc).
Not applicable.
nag_rand_lognormal (g05smc) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
Please consult the
Users' Note for your implementation for any additional implementation-specific information.
None.
This example prints five pseudorandom numbers from a log-normal distribution with mean
and variance
, generated by a single call to nag_rand_lognormal (g05smc), after initialization by
nag_rand_init_repeatable (g05kfc).
None.