Probabilities::HypGeometricCDFInv Function

Overload List

#SignatureDescription
1double HypGeometricCDFInv(double p, int M, int K, int N);Hypergeometric distribution point percent function (PPF).
2void HypGeometricCDFInv(TDenseMtxVec *P, int M, int K, int N, TDenseMtxVec *Res);HyperGeometric distribution PPF (vectorized).

Overload 1: double HypGeometricCDFInv(double p, int M, int K, int N);

Hypergeometric distribution point percent function (PPF).

#NameTypeDescription
1pdoubleProbability, real positive value on closed interval [0,1].
2MintDefines total number of elements, valid values ae integers on closed interval [0,X].
3KintDefines number of elements with certain traits, valid values are integers on closed interval [X,M].
4NintDefines number of samples, valid values are integers on closed interval [X,M].

Returns: the hypergeometric distribution point percent function (PPF) for probability p using the integer parameters M (total number of elements), K (number of elements with a certain trait) and N (number of samples drawn).

Remarks:

The result is the least integer such that the hypergeometric CDF evaluated at result equals or exceeds p.

See Also: Probabilities::HypGeometricPDF, Probabilities::HypGeometricCDF
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void HypGeometricCDFInv(TDenseMtxVec *P, int M, int K, int N, TDenseMtxVec *Res);

HyperGeometric distribution PPF (vectorized).

#NameTypeDescription
1PTDenseMtxVec *Defines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2MintDefines total number of elements, valid values ae integers on closed interval [0,X].
3KintDefines number of elements with certain traits, valid values are integers on closed interval [X,M].
4NintDefines number of samples, valid values are integers on closed interval [X,M].
5ResTDenseMtxVec *After calculation stores the PPF calculated from P, K, M and N. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of P.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler