![]() |
Documentation
Tools for embedded systems
|
A 2nd order Low-Pass Filter. More...
#include <smoother.hpp>
Public Member Functions | |
virtual | ~smootherLPF2 () |
bool | setup (const real_t a=0.9_re) |
Setup an initialize the 2nd order Low-Pass Filter. | |
real_t | smooth (const real_t x) override |
Perform the smooth operation recursively for the input signal x. | |
![]() | |
virtual | ~smoother () |
bool | isInitialized (void) const |
Check if the smoother filter is initialized. | |
bool | reset (void) |
Reset the the smoother filter. | |
A 2nd order Low-Pass Filter.
|
inlinevirtual |
bool smootherLPF2::setup | ( | const real_t | a = 0.9_re | ) |
Setup an initialize the 2nd order Low-Pass Filter.
[in] | a | The filter adjustment parameter. A value between [ 0 < a < 1 ] |
true
on success, otherwise return false
. Perform the smooth operation recursively for the input signal x.
[in] | x | A sample of the input signal. |
Implements qlibs::smoother.