Template class that implements a moving average filter as fifo.
More...
#include <movingaverage.h>
|
| double | operator() () |
| | Operator overload to return the average value.
|
| |
| void | operator() (T tSample) |
| | Operator overload to add a new value to the filter.
|
| |
template<typename T, int N>
class MovingAverage< T, N >
Template class that implements a moving average filter as fifo.
- Template Parameters
-
| T | data type of the filter |
| N | size of the filter |
◆ operator()() [1/2]
template<typename T , int N>
Operator overload to return the average value.
- Returns
- the average value as double
◆ operator()() [2/2]
template<typename T , int N>
Operator overload to add a new value to the filter.
- Parameters
-
The documentation for this class was generated from the following file: