Y = hampel(X)
Y = hampel(X, K)
[Y, I] = hampel(X, K, NSIGMA)
[Y, I, XMEDIAN, XSIGMA] = hampel(...)
| Parameter | Description |
|---|---|
| X | input signal. |
| K | number of neighbors on each side. |
| NSIGMA | outlier threshold in robust standard deviations. |
| Parameter | Description |
|---|---|
| Y | filtered signal. |
| I | logical outlier index. |
| XMEDIAN | local median values. |
| XSIGMA | local robust standard deviation estimates. |
hampel replaces outliers by the local median.
[y, i] = hampel([1 1 10 1 1], 1, 2);
| Version | Description |
|---|---|
| 2.0.0 | initial version |