Stixbox Function rhypg - Random numbers from the hypergeometric distribution
Calling Sequence
- X = rhypg(num,n,K,N)
Parameters
- num
: positive integer or a 2-vector [lig, col] of positive integers
- n,K,N
: nonnegative integers such that n<= N, K<= N
- N
: is the total number of elements of the population
- n
: is the number of elements which are randomly extracted K is the number of elements of the population which have the studied property
- X
: num-vector or a num-matrix of random numbers chosen from the hypergeometric distribution with parameters n,K,N
Description
Random numbers from the hypergeometric distribution (inversion
method).