nag_rngs_chi_sq (g05lcc) generates a vector of pseudorandom numbers taken from a -distribution with degrees of freedom.
The distribution has PDF (probability density function)
This is the same as a gamma distribution with parameters
and
.
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_chi_sq (g05lcc).
Not applicable.
This example prints five pseudorandom numbers from a
-distribution with five degrees of freedom, generated by a single call to nag_rngs_chi_sq (g05lcc), after initialization by
nag_rngs_init_repeatable (g05kbc).
None.