[m, v] = binostat(n, p)
| Parameter | Description |
|---|---|
| n | nonnegative integer scalar or array: number of trials. |
| p | scalar or array in the range [0, 1]: probability of success. |
| Parameter | Description |
|---|---|
| m | array: mean values. |
| v | array: variance values. |
binostat returns the mean and variance of the binomial distribution.
[m, v] = binostat([10 20], [0.25 0.5]);
| Version | Description |
|---|---|
| 2.0.0 | initial version |