Probabilities.HypGeometricCDF Method

Overload List

#SignatureDescription
1Double HypGeometricCDF(Int32 x, Int32 M, Int32 K, Int32 N)Hypergeometric cumulative distribution function (CDF).
2void HypGeometricCDF(TMtxVecInt X, Int32 M, Int32 K, Int32 N, TDenseMtxVec Res)Hypergeometric distribution CDF (vectorized).

Overload 1: Double HypGeometricCDF(Int32 x, Int32 M, Int32 K, Int32 N)

Hypergeometric cumulative distribution function (CDF).

#NameDescription
1xDistribution domain, integer on the closed interval [0,N].
2MTotal number of elements in the population, M>=0.
3KNumber of elements with the desired trait, 0<=K<=M.
4NNumber of samples drawn without replacement, 0<=N<=M.

Returns: Double - the hypergeometric cumulative distribution function (CDF) at x for population M, K success states and N draws. Returns NAN on parameter violations.

Remarks:

Computes the hypergeometric CDF, the probability of drawing up to x of the K success items in N draws without replacement:

CDF(x| M,K,N)=sum_(j=0)^x(dbinomKjdbinomM-KN-j)/dbinomMN

The result is NaN when x<0, M,K,N<0,K>M,N>M,x>Norx>KM,K,N<0`,`K>M`,`N>M`,`x>N`or`x>K.

See Also: Probabilities.HypGeometricPDF, Probabilities.HypGeometricCDFInv

Overload 2: void HypGeometricCDF(TMtxVecInt X, Int32 M, Int32 K, Int32 N, TDenseMtxVec Res)

Hypergeometric distribution CDF (vectorized).

#NameDescription
1XDistribution domain, with integer values on closed interval [0,N].
2MDefines total number of elements, valid values ae integers on closed interval [0,X].
3KDefines number of elements with certain traits, valid values are integers on closed interval [X,M].
4NDefines number of samples, valid values are integers on closed interval [X,M].
5ResAfter calculation stores the CDF calculated from X, K, M and N. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X.

Result: stored in self (calling object)