hygernd - Hypergeometric random numbers
Syntax
R = hygernd(M,K,N)
R = hygernd(M,K,N,v)
R = hygernd(M,K,N,m,n)
Description
R = hygernd(M,K,N) generates
random numbers from the hypergeometric distribution with corresponding
size of the population, M, number of items with
the desired characteristic in the population, K,
and number of samples drawn, N. M, K,
and N can be vectors, matrices, or multidimensional
arrays that all have the same size, which is also the size of R.
A scalar input for M, K, or N is
expanded to a constant array with the same dimensions as the other
inputs.
R = hygernd(M,K,N,v) generates
random numbers from the hypergeometric distribution with parameters M, K,
and N, where v is a row vector.
If v is a 1-by-2 vector, R is
a matrix with v(1) rows and v(2) columns.
If v is 1-by-n, R is an n-dimensional
array.
R = hygernd(M,K,N,m,n) generates
random numbers from the hypergeometric distribution with parameters M, K,
and N, where scalars m and n are
the row and column dimensions of R.
Examples
numbers = hygernd(1000,40,50)
numbers =
1
See Also
random, hygepdf, hygecdf, hygeinv, hygestat
 | hygepdf | | hygestat |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit