FUNCTION REFERENCE
geocdf
Geometric cumulative distribution function.
Geometric cumulative distribution function.
Syntax
Y = geocdf(X, P)Syntax
Y = geocdf(X, P, 'upper')P(X' <= X) for the geometric distribution with success probability P in [0, 1] (P = 0 puts all the mass at Inf); X counts the failures before the first success. With 'upper' it returns P(X' > X), computed directly in that tail so small upper probabilities keep their digits. X is rounded down to an integer. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.
Example
geocdf(2, 0.3)Example
geocdf(2, 0.3, 'upper')These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.