FUNCTION REFERENCE
geoinv
Inverse of the geometric cumulative distribution function.
Inverse of the geometric cumulative distribution function.
Syntax
X = geoinv(Y, P)Returns the smallest integer X with cdf(X) >= Y. Y = 0 gives 0 and Y = 1 the top of the support (Inf when it is unbounded). Parameters as in geocdf: success probability P in [0, 1] (P = 0 puts all the mass at Inf); X counts the failures before the first success. Y outside [0, 1] gives NaN. 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.
Example
geoinv(0.3, 0.3)These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.