Maxima Function
random_hypergeometric (n1,n2,n)
random_hypergeometric(n1,n2,n,m)
Returns a Hypergeometric(n1,n2,n) random variate, with n1, n2 and n non negative integers and n<=n1+n2. Calling random_hypergeometric
with a fourth argument m, a random sample of size m 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_hypergeometric_algorithm
, which defaults to kachit
.
See also . To make use of this function, write first load(distrib)
.