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:
- KarimAzzouz
- Date:
- 2012-12-26
- Revision:
- 0:c1b48befe066
- Child:
- 1:fbc57eb4e61d
File content as of revision 0:c1b48befe066:
#ifndef MAF_H #define MAF_H #include "mbed.h" class MAF { public: MAF(void); float update(float data); private : float _k[4]; float _result; }; #endif