random_f_algorithm SciMax Toolbox random_gamma_algorithm

SciMax Toolbox >> random_gamma

random_gamma

Maxima Function

Calling Sequence

random_gamma (a,b)
random_gamma(a,b,n)

Description

Returns a Gamma(a,b) random variate, with a,b>0. Calling random_gamma with a third argument n, a random sample of size n will be simulated.

There are two algorithms implemented for this function, the one to be used can be selected giving a certain value to the global variable random_gamma_algorithm, which defaults to ahrens_cheng.

See also . To make use of this function, write first load(distrib).

random_f_algorithm SciMax Toolbox random_gamma_algorithm