dHypergeometric¶
- dHypergeometric(n, k, m, x)¶
The probability distribution function of an hypergeometric distribution.
- Parameters:
- nint,
The size of the sample.
- kint,
The number of candidates in the sample.
- mint,
The number of individuals in a draw.
- xint,
The number of candidates in a draw.
- Returns:
- pfloat
The probability to get candidates in a draw.
Notes
This method is based on an algorithm similar to Loader’s algorithm, the fast and accurate method described in [loader2000], with the further improvements mentioned in [dimitriadis2016].
Examples
>>> import openturns as ot >>> p = ot.DistFunc.dHypergeometric(10, 4, 7, 2)