hygepdf
Hypergeometric probability density function (PDF).
For each element of x, compute the probability density function (PDF) at x of the hypergeometric distribution with parameters t, m, and n. The size of y is the common size of the input parameters. A scalar input functions as a constant matrix of the same size as the other inputs.
This is the probability of obtaining x marked items when randomly drawing a sample of size n without replacement from a population of total size t containing m marked items. The parameters t, m, and n must be positive integers with m and n not greater than t.
If the optional parameter vectorexpand
is provided, x may be an
array with size different from parameters t, m, and n
(which must still be of a common size or scalar). Each element of x
will be evaluated against each set of parameters t, m, and
n in columnwise order. The output y will be an array of size
r x s
, where r = numel (t)
, and
s = numel (x)
.
See also: hygecdf, hygeinv, hygernd, hygestat
Source Code: hygepdf