![]() |
Documentation
Tools for embedded systems
|
A 1st order Low-Pass Filter. More...
#include <smoother.hpp>
Public Member Functions | |
| virtual | ~smootherLPF1 () |
| bool | setup (const real_t a=0.9_re) |
| Setup an initialize the 1st order Low-Pass Filter. | |
| real_t | smooth (const real_t x) override |
| Perform the smooth operation recursively for the input signal x. | |
Public Member Functions inherited from qlibs::smoother | |
| virtual | ~smoother () |
| bool | isInitialized (void) const |
| Check if the smoother filter has been initialized using setup(). | |
| operator bool () const noexcept | |
| Check if the smoother filter has been initialized using setup(). | |
| bool | reset (void) |
| Reset the smoother filter. | |
A 1st order Low-Pass Filter.
|
inlinevirtual |
| bool smootherLPF1::setup | ( | const real_t | a = 0.9_re | ) |
Setup an initialize the 1st order Low-Pass Filter.
| [in] | a | The filter adjustment parameter. A value between [ 0 < alpha < 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.