hampel
Hampel outlier filtering.
📝Syntax
Y = hampel(X)
Y = hampel(X, K)
[Y, I] = hampel(X, K, NSIGMA)
[Y, I, XMEDIAN, XSIGMA] = hampel(...)
📥Input Arguments
Parameter Description
X input signal.
K number of neighbors on each side.
NSIGMA outlier threshold in robust standard deviations.
📤Output Arguments
Parameter Description
Y filtered signal.
I logical outlier index.
XMEDIAN local median values.
XSIGMA local robust standard deviation estimates.
📄Description

hampel replaces outliers by the local median.

💡Examples
[y, i] = hampel([1 1 10 1 1], 1, 2);
🔗See Also
medfilt1
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub