Class SignRegularizedWithTanh

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::SignRegularizedWithTanh : public Mechatronix::RegularizedBase

Sign function smoothed.

Inizialization

inline explicit SignRegularizedWithTanh()
virtual void setup(GenericContainer const &gc) override
void setup(real_type h)

Compute \( \kappa \) for regularized sign from h

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate regularized sign

\[ \textrm{tanh}(\kappa x) \]

where \( \kappa \) satisfy

\[ \textrm{tanh}(\kappa h) = 1-h \]

../_images/SignRegularizedWithTanh0.jpeg

virtual real_type D(real_type x) const override

Evaluate regularized sign first derivative

../_images/SignRegularizedWithTanh1.jpeg

virtual real_type DD(real_type x) const override

Evaluate regularized sign second derivative

../_images/SignRegularizedWithTanh2.jpeg

Info

virtual string info() const override