DistFunc_pHypergeometric(n, k, m, x, tail=False)¶
The cumulative probability function of an hypergeometric distribution.
The population size
The number of candidates in the population
The number of individuals in a draw
The number of candidates in a draw
Flag to tell if it is the CDF or its complement which is evaluated
The probability to get at most candidates in a draw.
This method is based on a summation of the probability function toward the upper bound or the lower bound of the range depending on the position of wrt the mode of the distribution, then take the complement if needed.
>>> import openturns as ot >>> p = ot.DistFunc.pHypergeometric(10, 4, 7, 2) >>> p = ot.DistFunc.pHypergeometric(10, 4, 7, 2, True)