Hampel filter in C++
This function returns the Hampel filtered values of input data. This function is identical to 
http://www.mathworks.se/matlabcentral/fileexchange/34795-outlier-detection-and-removal-hampel
, except that this implementation is in C++/mex and is significantly faster, especially for large datasets. One other difference is that the window width in this implementation is specified as a number of points, and not as an absolute width in for instance time.
Cite As
Ivar Eskerud Smith (2025). Hampel filter in C++ (https://se.mathworks.com/matlabcentral/fileexchange/40147-hampel-filter-in-c), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filtering >
 - Signal Processing > Signal Processing Toolbox > Signal Generation, Analysis, and Preprocessing > Smoothing and Denoising >
 
Tags
Acknowledgements
Inspired by: Outlier Detection and Removal [hampel]
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
