1#ifndef EXP_SMOOTHING_FILTER_H
2#define EXP_SMOOTHING_FILTER_H
31 return previous = (value*a + previous*(b-a))/b;
Class for a exponential smoothing filter implementing the Filter interface.
Definition ExpSmoothingFilter.h:11
ExpSmoothingFilter(int a, int b)
Constructor for the exponential smoothing filter.
Definition ExpSmoothingFilter.h:19
T filter(T value)
Computes the filtered output using an exponential filter, giving the passed value a weight of a/b.
Definition ExpSmoothingFilter.h:30
Interface for a generic filter, with parameterized type.
Definition Filter.h:9