<< distfun_gamfitmm Gamma distfun_gampdf >>

distfun >> distfun > Gamma > distfun_gaminv

distfun_gaminv

Gamma Inverse CDF

Calling Sequence

x = distfun_gaminv ( p , a , b )
x = distfun_gaminv ( p , a , b , lowertail )

Parameters

p :

a matrix of doubles, the probability. Must be in the range [0,1].

a :

a matrix of doubles, the shape parameter, a>0.

b :

a matrix of doubles, the scale parameter, b>0.

lowertail :

a 1-by-1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<=x) otherwise P(X>x).

x :

a matrix of doubles, the outcome, x>=0

Description

Computes the Gamma inverse cumulated probability distribution function.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

// Test x scalar, a scalar, b expanded
b = 1:5;
p = [  ..
6.321205588285576660D-01  ..
3.934693402873664647D-01  ..
2.834686894262107293D-01  ..
2.211992169285951215D-01  ..
1.812692469220181790D-01  ..
]
x = distfun_gaminv(p,1,b)

// See upper tail
distfun_gaminv(1.e-20,3,5,%f)

Authors


Report an issue
<< distfun_gamfitmm Gamma distfun_gampdf >>