Class SignRegularizedWithErf

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::SignRegularizedWithErf : public Mechatronix::RegularizedBase

Sign function smoothed.

Inizialization

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

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

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate regularized sign

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

where \( \kappa \) satisfy

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

../_images/SignRegularizedWithErf0.jpeg

virtual real_type D(real_type x) const override

Evaluate regularized sign first derivative

../_images/SignRegularizedWithErf1.jpeg

virtual real_type DD(real_type x) const override

Evaluate regularized sign second derivative

../_images/SignRegularizedWithErf0.jpeg

Info

virtual string info() const override