nag_rngs_cauchy (g05llc) generates a vector of pseudorandom numbers from a Cauchy distribution with median and semi-interquartile range .
The distribution has PDF (probability density function)
nag_rngs_cauchy (g05llc) returns the value
where
and
are a pair of consecutive pseudorandom numbers from a uniform distribution over
, such that
One of the initialization functions
nag_rngs_init_repeatable (g05kbc) (for a repeatable sequence if computed sequentially) or
nag_rngs_init_nonrepeatable (g05kcc) (for a non-repeatable sequence) must be called prior to the first call to nag_rngs_cauchy (g05llc).
Not applicable.
None.
This example prints the first five pseudorandom real numbers from a Cauchy distribution with median
and semi-interquartile range
, generated by a single call to nag_rngs_cauchy (g05llc), after initialization by
nag_rngs_init_repeatable (g05kbc).
None.