Dew MtxVec NET
HypGeometricCDFInv Routines
Summary
Hypergeometric distribution point percent function (PPF).

Unit
Probabilities

Declaration
Function HypGeometricCDFInv(p: TSample; M, K, N: Integer): TSample;
Result
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). Probability p must lie on the interval [0,1], all the parameters M, K N must be greater or equal than zero, M >= N, M >= K. If not all of these conditions are met, the result is NAN.
The result of HypGeometricCDFinv is the least integer such that the hypergeometric CDF evaluated at result equals or exceeds p.
Categories
Discrete probabilities
 See Also 
HypGeometricPDF 
HypGeometricCDF 

Declaration
Procedure HypGeometricCDFInv(P: TDenseMtxVec; M, K, N: Integer; Res: TDenseMtxVec);

Description
Calculates the inverse HyperGeometric CDF for probability vector P using the parameters M, K and N. The results are stored in vector Res. The Res Length and Complex properties are adjusted automatically. If vector X is complex, an exception is raised.

Copyright 2008 Dew Research
http://www.dewresearch.com