Main Page
Namespaces
Classes
Files
File List
File Members
include
timesync
HoltWinters.h
Go to the documentation of this file.
1
#ifndef HOLTWINTERS_H
2
#define HOLTWINTERS_H
3
#include <
ros/ros.h
>
4
10
class
HoltWintersSmoothFilter
11
{
12
public
:
13
HoltWintersSmoothFilter
(
double
initialB =
defaultInitialB_
,
double
alfa =
defaultAlfa_
,
double
beta =
defaultBeta_
);
16
void
insert
(
const
double
& v );
17
20
double
getFiltered
();
21
22
void
reset
(
double
initialB =
defaultInitialB_
);
23
void
setAlfa
(
double
alfa);
24
void
setBeta
(
double
beta);
25
26
private
:
27
28
static
constexpr
double
defaultAlfa_
= 1e-3;
29
static
constexpr
double
defaultBeta_
= 1e-4;
30
static
constexpr
double
defaultInitialB_
= -3e-7;
31
32
bool
gotFirst_
;
33
double
b_
,
s_
;
34
double
alfa_
,
beta_
;
35
};
36
37
#endif
HoltWintersSmoothFilter::insert
void insert(const double &v)
Definition:
HoltWinters.cpp:9
HoltWintersSmoothFilter::HoltWintersSmoothFilter
HoltWintersSmoothFilter(double initialB=defaultInitialB_, double alfa=defaultAlfa_, double beta=defaultBeta_)
Definition:
HoltWinters.cpp:3
HoltWintersSmoothFilter::defaultBeta_
static constexpr double defaultBeta_
Definition:
HoltWinters.h:29
HoltWintersSmoothFilter::defaultInitialB_
static constexpr double defaultInitialB_
Definition:
HoltWinters.h:30
HoltWintersSmoothFilter::b_
double b_
Definition:
HoltWinters.h:33
HoltWintersSmoothFilter
Definition:
HoltWinters.h:10
HoltWintersSmoothFilter::beta_
double beta_
Definition:
HoltWinters.h:34
HoltWintersSmoothFilter::defaultAlfa_
static constexpr double defaultAlfa_
Definition:
HoltWinters.h:28
HoltWintersSmoothFilter::alfa_
double alfa_
Definition:
HoltWinters.h:34
HoltWintersSmoothFilter::reset
void reset(double initialB=defaultInitialB_)
Definition:
HoltWinters.cpp:29
HoltWintersSmoothFilter::s_
double s_
Definition:
HoltWinters.h:33
ros.h
HoltWintersSmoothFilter::getFiltered
double getFiltered()
Definition:
HoltWinters.cpp:25
HoltWintersSmoothFilter::gotFirst_
bool gotFirst_
Definition:
HoltWinters.h:32
HoltWintersSmoothFilter::setBeta
void setBeta(double beta)
Definition:
HoltWinters.cpp:38
HoltWintersSmoothFilter::setAlfa
void setAlfa(double alfa)
Definition:
HoltWinters.cpp:34
timesync_ros
Author(s): Juraj Oršulić
autogenerated on Mon Jun 10 2019 15:28:33