![]() |
Documentation
Tools for embedded systems
|
An Exponential weighting filter. More...
#include <smoother.hpp>
Public Member Functions | |
| virtual | ~smootherEXPW () |
| bool | setup (const real_t lam=0.8_re) |
| Setup an initialize the Exponential weighting 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. | |
An Exponential weighting filter.
|
inlinevirtual |
| bool smootherEXPW::setup | ( | const real_t | lam = 0.8_re | ) |
Setup an initialize the Exponential weighting filter.
| [in] | lam | Forgetting factor, a value between [ 0 < lam < 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.