Statistics Toolbox
  Go to function:
    Search    Help Desk 
gaminv    Examples

Inverse of the gamma cumulative distribution function (cdf).

Syntax

Description

gaminv(P,A,B) computes the inverse of the gamma cdf with parameters A and B for the probabilities in P. The arguments P, A and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

The parameters A and B must both be positive and P must lie on the interval
[0 1].

The gamma inverse function in terms of the gamma cdf is:


Algorithm

There is no known analytic solution to the integral equation above. gaminv uses an iterative approach (Newton's method) to converge to the solution.

Examples

This example shows the relationship between the gamma cdf and its inverse function.



[ Previous | Help Desk | Next ]