Class PositivePartRegularizedWithErf

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::PositivePartRegularizedWithErf : public Mechatronix::RegularizedBase

Positive part smoothed.

Inizialization

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

Initialize PositivePartRegularizedWithErf given h

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate

\[ f(x) = x\frac{1+\textrm{erf}(\kappa x)}{2} +\frac{\exp(-\kappa^2 x^2)}{2\kappa\sqrt{\pi}} \]

where \( \kappa \) satisfy

\[ f(0) = \epsilon \]

and thus

\[ \kappa = \frac{1}{2h\sqrt{\pi}} \]

../_images/PositivePartRegularizedWithErf0.jpeg

virtual real_type D(real_type x) const override

../_images/PositivePartRegularizedWithErf1.jpeg

virtual real_type DD(real_type x) const override

../_images/PositivePartRegularizedWithErf2.jpeg

Info

virtual string info() const override