DistFunc_dHypergeometric¶
- DistFunc_dHypergeometric(n, k, m, x)¶
The probability function of an hypergeometric distribution.
- Parameters
- nint,
The population size
- kint,
The number of candidates in the population
- 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)