December 6th, 2007, 9:13 pm
How about Matlab?Statistics Toolbox gaminvInverse of the gamma cumulative distribution function (cdf)Syntax X = gaminv(P,A,B) [X,XLO,XUP] = gamcdf(P,A,B,pcov,alpha)DescriptionX = gaminv(P,A,B) computes the inverse of the gamma cdf with parameters A and B for the corresponding probabilities in P. P, A, and B can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other inputs. The parameters in A and B must all be positive, and the values in P must lie on the interval [0 1].