Class for a exponential smoothing filter implementing the Filter interface.
More...
#include <ExpSmoothingFilter.h>
|
| ExpSmoothingFilter (int a, int b) |
| Constructor for the exponential smoothing filter.
|
|
T | filter (T value) |
| Computes the filtered output using an exponential filter, giving the passed value a weight of a/b.
|
|
template<typename T>
class ExpSmoothingFilter< T >
Class for a exponential smoothing filter implementing the Filter interface.
- Template Parameters
-
T | type of the variable to be filtered. |
◆ ExpSmoothingFilter()
Constructor for the exponential smoothing filter.
The weight for the filter is given by the parameters a and b, representing the fraction a/b.
- Parameters
-
a | weight fraction numerator. |
b | weight fraction denominator. |
◆ filter()
Computes the filtered output using an exponential filter, giving the passed value a weight of a/b.
- Parameters
-
- Returns
- T filtered output.
Implements Filter< T >.
The documentation for this class was generated from the following file: