Hyperbolic gain. More...
#include <sot/core/gain-hyperbolic.hh>
Public Member Functions | |
virtual void | display (std::ostream &os) const |
virtual const std::string & | getClassName (void) const |
GainHyperbolic (const std::string &name) | |
GainHyperbolic (const std::string &name, const double &lambda) | |
GainHyperbolic (const std::string &name, const double &valueAt0, const double &valueAtInfty, const double &tanAt0, const double &decal0) | |
void | init (void) |
void | init (const double &lambda) |
void | init (const double &valueAt0, const double &valueAtInfty, const double &tanAt0, const double &decal0) |
Set the coefficients. More... | |
void | forceConstant (void) |
Public Attributes | |
dg::SignalPtr< dg::Vector, int > | errorSIN |
dg::SignalTimeDependent< double, int > | gainSOUT |
Static Public Attributes | |
static const double | ZERO_DEFAULT |
static const double | INFTY_DEFAULT |
static const double | TAN_DEFAULT |
static const std::string | CLASS_NAME |
Protected Member Functions | |
double & | computeGain (double &res, int t) |
Protected Attributes | |
double | coeff_a |
double | coeff_b |
double | coeff_c |
double | coeff_d |
Hyperbolic gain.
It follows the law
\[ g(e) = a \frac{\tanh(-b(||e|| - d)) + 1}{2} + c \]
The default coefficients are:
dynamicgraph::sot::GainHyperbolic::GainHyperbolic | ( | const std::string & | name | ) |
dynamicgraph::sot::GainHyperbolic::GainHyperbolic | ( | const std::string & | name, |
const double & | lambda | ||
) |
dynamicgraph::sot::GainHyperbolic::GainHyperbolic | ( | const std::string & | name, |
const double & | valueAt0, | ||
const double & | valueAtInfty, | ||
const double & | tanAt0, | ||
const double & | decal0 | ||
) |
|
protected |
|
virtual |
void dynamicgraph::sot::GainHyperbolic::forceConstant | ( | void | ) |
|
inlinevirtual |
|
inline |
|
inline |
void dynamicgraph::sot::GainHyperbolic::init | ( | const double & | valueAt0, |
const double & | valueAtInfty, | ||
const double & | tanAt0, | ||
const double & | decal0 | ||
) |
Set the coefficients.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
dg::SignalPtr<dg::Vector, int> dynamicgraph::sot::GainHyperbolic::errorSIN |
dg::SignalTimeDependent<double, int> dynamicgraph::sot::GainHyperbolic::gainSOUT |
|
static |
|
static |
|
static |