a floating median filter to filter floating point data such as analog inputs
Fork of filter by
filter.h
- Committer:
- joe4465
- Date:
- 2015-04-01
- Revision:
- 1:9ce370b360ba
- Parent:
- 0:46a72e790df8
File content as of revision 1:9ce370b360ba:
#ifndef FILTER_H #define FILTER_H class filter { private: int N; double *val; bool *big; int med, i; double median; int findmax(); int findmin(); public: filter(int window = 3); //every window >= 1 is allowed but the behaviour for even window sizes is not well defined double process(double); double getMedian(); }; #endif