A 10-Point moving average filter that returns a float each time a new value is added to the moving average array.
Fork of MovingAverageFilter by
MAF.h
- Committer:
- joe4465
- Date:
- 2014-05-16
- Revision:
- 2:21b70641f866
- Parent:
- 1:fbc57eb4e61d
File content as of revision 2:21b70641f866:
#ifndef MAF_H #define MAF_H #include "mbed.h" class MAF { public: MAF(); float update(float data); private : float _k[10]; float _result; }; #endif