y = geocdf(x, p)
y = geocdf(x, p, 'upper')
| 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. |
| Parameter | Description |
|---|---|
| y | array: probability values. |
geocdf evaluates geometric cumulative probabilities element by element.
x = [0 1 2 5];
y = geocdf(x, 0.25);
| Version | Description |
|---|---|
| 2.0.0 | initial version |