Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MedianFilter.hpp
- Committer:
- Kerneels Bezuidenhout
- Date:
- 2016-09-26
- Revision:
- 1:7e434a01533c
- Parent:
- 0:49e6de85e2fb
- Child:
- 3:ec86928ff12d
File content as of revision 1:7e434a01533c:
#ifndef MEDIANFILTER_H #define MEDIANFILTER_H #include <deque> #include <algorithm> class MedianFilter { public: MedianFilter(int size = 3); float Process(float val); private: int _size; int _n; deque<float> _window; }; #endif