Function Reference: geocdf

statistics: p = geocdf (x, ps)
statistics: p = geocdf (x, ps, "upper")

Geometric cumulative distribution function (CDF).

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

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

p = geocdf (x, ps, "upper") computes the upper tail probability of the geometric distribution with probability parameter ps.

See also: geoinv, geopdf, geornd, geostat

Source Code: geocdf