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