Class AbsoluteValueRegularizedWithSinAtan0

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::AbsoluteValueRegularizedWithSinAtan0 : public Mechatronix::RegularizedBase

Absolute value smoothed

\[ |x|_h = \frac{x^2}{\sqrt{h^2+x^2}} \]

where

\[ |0|_h = h \]

../_images/AbsoluteValueRegularizedWithSinAtan0_0.jpeg

Inizialization

inline explicit AbsoluteValueRegularizedWithSinAtan0()
virtual void setup(GenericContainer const &gc) override

Initialize class using generic container that must contain gc("h") the value of the smoothing parameter.

void setup(real_type h)

Initialize class setting the smoothing parameter h

Initialize AbsoluteValueRegularizedWithSinAtan0 given h

inline void update_h(real_type h)

Update the smoothing parameter h

Evaluate

virtual real_type operator()(real_type x) const override

../_images/AbsoluteValueRegularizedWithSinAtan0_0.jpeg

virtual real_type D(real_type x) const override

../_images/AbsoluteValueRegularizedWithSinAtan0_1.jpeg

virtual real_type DD(real_type x) const override

../_images/AbsoluteValueRegularizedWithSinAtan0_2.jpeg

Info

virtual string info() const override