random_gamma_algorithm SciMax Toolbox random_geometric_algorithm

SciMax Toolbox >> random_geometric

random_geometric

Maxima Function

Calling Sequence

random_geometric (p)
random_geometric(p,n)

Description

Returns a Geometric(p) random variate, with 0<p<1. Calling random_geometric with a second argument n, a random sample of size n will be simulated.

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

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

random_gamma_algorithm SciMax Toolbox random_geometric_algorithm