nag_rngs_students_t (g05lbc) generates a vector of pseudorandom numbers taken from a Student's -distribution with degrees of freedom.
The distribution has PDF (probability density function)
nag_rngs_students_t (g05lbc) calculates the values
where the
are generated by
nag_rngs_normal (g05lac) from a Normal distribution with mean
and variance
, and the
are generated by
nag_rngs_gamma (g05lfc) from a gamma distribution with parameters
and
(i.e., from a
-distribution with
degrees of freedom).
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_students_t (g05lbc).
Not applicable.
This example prints five pseudorandom numbers from a Student's
-distribution with five degrees of freedom, generated by a single call to nag_rngs_students_t (g05lbc), after initialization by
nag_rngs_init_repeatable (g05kbc).
None.