![]() |
Documentation
Tools for embedded systems
|
Double exponential smoothing (Holt’s Method) More...
#include <smoother.hpp>
Public Member Functions | |
virtual | ~smootherDESF () |
Setup an initialize the Double exponential smoothing instance. | |
bool | setup (const real_t a, const real_t b, const size_t nS) |
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. | |
Double exponential smoothing (Holt’s Method)
|
inlinevirtual |
Setup an initialize the Double exponential smoothing instance.
[in] | a | Weight for the level [ 0 < a < 1 ] |
[in] | b | Weight for the trend [ 0 < b < 1 ] |
[in] | nS | Number of steps for the forecast |
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.