nlogL = rayllike(b, x)
[nlogL, avar] = rayllike(b, x, censoring, freq)
| Parameter | Description |
|---|---|
| b | positive scalar: scale parameter. |
| x | nonnegative finite real nonempty array: sample data. |
| censoring | array containing 0 or 1 values: right-censoring flags. |
| freq | array of nonnegative finite values: observation frequencies. |
| Parameter | Description |
|---|---|
| nlogL | scalar: negative log-likelihood. |
| avar | scalar: approximate variance. |
rayllike evaluates the negative log-likelihood of the Rayleigh distribution.
x = [0.5 1 2 3 5 8];
b = raylfit(x);
nlogL = rayllike(b, x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |