<< hypg_cdf Supplementary distibution functions hypg_pdf >>

Grocer >> Supplementary distibution functions > hypg_inv

hypg_inv

hypergeometric quantile

CALLING SEQUENCE

[k]=hypg_inv(p,n,K,N)

PARAMETERS

Input

* p = a vector

* n,K,N = parameters of the hypergeometric distribution (n = size of the population drawn, K = size of the class of interest among the whole population, N = size of the whole population).

 

Output

* k = The vectors of the smallest integers so that P(X < = k) > = p(i) for each coordinate i of p.

DESCRIPTION

Performs the hypergeometric inverse (quantile) function.

EXAMPLE

x = hypg_inv([1:19]/20,15,20,50)

AUTHOR

Eric Dubois 2002

Report an issue
<< hypg_cdf Supplementary distibution functions hypg_pdf >>