nHat = unidfit(x)
[nHat, nCI] = unidfit(x, alpha)
| Parameter | Description |
|---|---|
| x | positive integer finite real nonempty vector or matrix: sample data. |
| alpha | scalar in the range [0, 1]: significance level. Default is 0.05. |
| Parameter | Description |
|---|---|
| nHat | array: estimates of the maximum integer value. |
| nCI | array: confidence intervals for the estimates. |
unidfit estimates the maximum value of a discrete uniform distribution on integers from 1 to n.
x = [1 2 4 5 5];
[nHat, nCI] = unidfit(x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |