include
sot
core
gradient-ascent.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_GRADIENTASCENT_H__
10
#define __SOT_GRADIENTASCENT_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
GradientAscent
:
public
Entity
{
34
DYNAMIC_GRAPH_ENTITY_DECL
();
35
36
public
:
37
SignalPtr<dynamicgraph::Vector, sigtime_t>
gradientSIN
;
38
SignalPtr<double, sigtime_t>
learningRateSIN
;
39
SignalTimeDependent<size_type, sigtime_t>
refresherSINTERN
;
40
SignalTimeDependent<dynamicgraph::Vector, sigtime_t>
valueSOUT
;
41
42
public
:
43
GradientAscent
(
const
std::string &
n
);
44
virtual
~
GradientAscent
(
void
);
45
46
protected
:
47
dynamicgraph::Vector
&
update
(
dynamicgraph::Vector
&res,
48
const
sigtime_t
&inTime);
49
50
dynamicgraph::Vector
value
;
51
52
double
alpha
;
53
bool
init
;
54
};
55
56
}
/* namespace sot */
57
}
/* namespace dynamicgraph */
58
59
#endif
/* #ifndef __SOT_TRACER_H__ */
dynamicgraph::sot::GradientAscent
Definition:
gradient-ascent.hh:33
signal-ptr.h
signal-time-dependent.h
dynamicgraph::sot::GradientAscent::learningRateSIN
SignalPtr< double, sigtime_t > learningRateSIN
Definition:
gradient-ascent.hh:38
dynamicgraph::SignalPtr
dynamicgraph
dynamicgraph::sot::GradientAscent::alpha
double alpha
Definition:
gradient-ascent.hh:52
dynamicgraph::Entity
DYNAMIC_GRAPH_ENTITY_DECL
#define DYNAMIC_GRAPH_ENTITY_DECL()
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::GradientAscent::value
dynamicgraph::Vector value
Definition:
gradient-ascent.hh:50
dynamicgraph::sot::GradientAscent::gradientSIN
SignalPtr< dynamicgraph::Vector, sigtime_t > gradientSIN
Definition:
gradient-ascent.hh:37
dynamicgraph::Vector
Eigen::VectorXd Vector
update
AABB & update(const Vec3f &a, const Vec3f &b)
dynamicgraph::sot::GradientAscent::refresherSINTERN
SignalTimeDependent< size_type, sigtime_t > refresherSINTERN
Definition:
gradient-ascent.hh:39
dynamicgraph::SignalTimeDependent
dynamicgraph::sot::GradientAscent::init
bool init
Definition:
gradient-ascent.hh:53
n
Vec3f n
dynamicgraph::sot::GradientAscent::valueSOUT
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > valueSOUT
Definition:
gradient-ascent.hh:40
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31