Class ExponentialFilter
Defined in File exponential_filter.hpp
Class Documentation
-
class ExponentialFilter
Callable type implementing an exponential filter.
Public Functions
-
inline explicit constexpr ExponentialFilter(double alpha) noexcept
Constructs an exponential filter.
- Parameters:
alpha – The exponential filter smoothing factor.
-
inline constexpr void reset() noexcept
Resets the output of the exponential filter to zero.
-
inline constexpr double operator()(double input) noexcept
Updates the exponential filter output given an input.
- Parameters:
input – Next value to be exponentially filtered.
-
inline explicit constexpr ExponentialFilter(double alpha) noexcept