geocdf
Geometric cumulative distribution function
📝Syntax
y = geocdf(x, p)
y = geocdf(x, p, 'upper')
📥Input Arguments
Parameter Description
x real scalar or array: number of failures before the first success.
p scalar or array in the range [0, 1]: probability of success.
'upper' option to return the upper tail probability.
📤Output Arguments
Parameter Description
y array: probability values.
📄Description

geocdf evaluates geometric cumulative probabilities element by element.

💡Examples
x = [0 1 2 5];
y = geocdf(x, 0.25);
🔗See Also
geopdfgeoinvgeornd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub