Class for a moving average filter implementing the Filter interface.
More...
#include <MovingAvgFilter.h>
|
| MovingAvgFilter (int nsamples) |
| Constructor for the moving average filter.
|
|
T | filter (T value) |
| Computes the filtered output taking into consideration the last nsamples values.
|
|
template<typename T>
class MovingAvgFilter< T >
Class for a moving average filter implementing the Filter interface.
- Template Parameters
-
T | type of the variable to be filtered. |
◆ MovingAvgFilter()
Constructor for the moving average filter.
- Parameters
-
nsamples | number of samples to consider for the average. |
◆ filter()
Computes the filtered output taking into consideration the last nsamples values.
- Parameters
-
- Returns
- T filtered output.
Implements Filter< T >.
The documentation for this class was generated from the following file: