13template<
typename T,
int N>
23 return (
double)total / samples.size();
33 total -= samples.pop();
35 samples.push(tSample);
Template class that implements a moving average filter as fifo.
Definition movingaverage.h:14
void operator()(T tSample)
Operator overload to add a new value to the filter.
Definition movingaverage.h:30
double operator()()
Operator overload to return the average value.
Definition movingaverage.h:22
simple Buffer backed queue implementation
Definition queue.h:12