include
sot
core
exp-moving-avg.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2018,
3
* Julian Viereck
4
*
5
* CNRS/AIST
6
*
7
*/
8
9
#ifndef __SOT_EXPMOVINGAVG_H__
10
#define __SOT_EXPMOVINGAVG_H__
11
12
/* --------------------------------------------------------------------- */
13
/* --- INCLUDE --------------------------------------------------------- */
14
/* --------------------------------------------------------------------- */
15
16
#include <dynamic-graph/entity.h>
17
#include <
dynamic-graph/signal-ptr.h
>
18
#include <
dynamic-graph/signal-time-dependent.h
>
19
20
#include <sot/core/config.hh>
21
22
namespace
dynamicgraph
{
23
namespace
sot {
24
25
/* --------------------------------------------------------------------- */
26
/* --- TRACER ---------------------------------------------------------- */
27
/* --------------------------------------------------------------------- */
28
29
using
dynamicgraph::Entity
;
30
using
dynamicgraph::SignalPtr
;
31
using
dynamicgraph::SignalTimeDependent
;
32
33
class
SOT_CORE_DLLAPI
ExpMovingAvg
:
public
Entity
{
34
DYNAMIC_GRAPH_ENTITY_DECL
();
35
36
public
:
37
SignalPtr<dynamicgraph::Vector, sigtime_t>
updateSIN
;
38
SignalTimeDependent<size_type, sigtime_t>
refresherSINTERN
;
39
SignalTimeDependent<dynamicgraph::Vector, sigtime_t>
averageSOUT
;
40
41
public
:
42
ExpMovingAvg
(
const
std::string &
n
);
43
virtual
~
ExpMovingAvg
(
void
);
44
45
void
setAlpha(
const
double
&alpha_);
46
47
protected
:
48
dynamicgraph::Vector
&
update
(
dynamicgraph::Vector
&res,
49
const
sigtime_t
&inTime);
50
51
dynamicgraph::Vector
average
;
52
53
double
alpha
;
54
bool
init
;
55
};
56
57
}
/* namespace sot */
58
}
/* namespace dynamicgraph */
59
60
#endif
/* #ifndef __SOT_TRACER_H__ */
signal-ptr.h
signal-time-dependent.h
dynamicgraph::sot::ExpMovingAvg::averageSOUT
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > averageSOUT
Definition:
exp-moving-avg.hh:39
dynamicgraph::SignalPtr
dynamicgraph
dynamicgraph::sot::ExpMovingAvg::alpha
double alpha
Definition:
exp-moving-avg.hh:53
dynamicgraph::Entity
dynamicgraph::sot::ExpMovingAvg::init
bool init
Definition:
exp-moving-avg.hh:54
dynamicgraph::sot::ExpMovingAvg::updateSIN
SignalPtr< dynamicgraph::Vector, sigtime_t > updateSIN
Definition:
exp-moving-avg.hh:37
DYNAMIC_GRAPH_ENTITY_DECL
#define DYNAMIC_GRAPH_ENTITY_DECL()
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::ExpMovingAvg
Definition:
exp-moving-avg.hh:33
dynamicgraph::sot::ExpMovingAvg::refresherSINTERN
SignalTimeDependent< size_type, sigtime_t > refresherSINTERN
Definition:
exp-moving-avg.hh:38
dynamicgraph::Vector
Eigen::VectorXd Vector
update
AABB & update(const Vec3f &a, const Vec3f &b)
dynamicgraph::sot::ExpMovingAvg::average
dynamicgraph::Vector average
Definition:
exp-moving-avg.hh:51
dynamicgraph::SignalTimeDependent
n
Vec3f n
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31