y = nbinpdf(x, r, p)
| Parameter | Description |
|---|---|
| x | real numeric array: number of failures. |
| r | positive scalar or array: number of successes. |
| p | scalar or array in the range [0, 1]: success probability. |
| Parameter | Description |
|---|---|
| y | probability values. |
nbinpdf computes probabilities for the negative binomial distribution.
x = 0:5;
y = nbinpdf(x, 3, 0.4);
| Version | Description |
|---|---|
| 2.0.0 | initial version |