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