#include <HoltWinters.h>
This class implements a recursive exponential smoothing filter which also estimates the derivative of the signal in order to produce an estimate without lag in steady state, as described in https://en.wikipedia.org/wiki/Exponential_smoothing#Double_exponential_smoothing
Definition at line 10 of file HoltWinters.h.
double HoltWintersSmoothFilter::getFiltered |
( |
| ) |
|
void HoltWintersSmoothFilter::insert |
( |
const double & |
v | ) |
|
Inserts the current reading into the filter
Definition at line 9 of file HoltWinters.cpp.
void HoltWintersSmoothFilter::setAlfa |
( |
double |
alfa | ) |
|
void HoltWintersSmoothFilter::setBeta |
( |
double |
beta | ) |
|
double HoltWintersSmoothFilter::alfa_ |
|
private |
double HoltWintersSmoothFilter::b_ |
|
private |
double HoltWintersSmoothFilter::beta_ |
|
private |
constexpr double HoltWintersSmoothFilter::defaultAlfa_ = 1e-3 |
|
staticprivate |
constexpr double HoltWintersSmoothFilter::defaultBeta_ = 1e-4 |
|
staticprivate |
constexpr double HoltWintersSmoothFilter::defaultInitialB_ = -3e-7 |
|
staticprivate |
bool HoltWintersSmoothFilter::gotFirst_ |
|
private |
double HoltWintersSmoothFilter::s_ |
|
private |
The documentation for this class was generated from the following files: