Function Reference: geoinv

statistics: x = geoinv (p, ps)

Inverse of the geometric cumulative distribution function (iCDF).

For each element of p, compute the quantile (the inverse of the CDF) at p of the geometric distribution with parameter ps. The size of x is the common size of p and ps. A scalar input functions as a constant matrix of the same size as the other inputs.

The geometric distribution models the number of failures (p) of a Bernoulli trial with probability ps before the first success.

See also: geocdf, geopdf, geornd, geostat

Source Code: geoinv