Class SignRegularizedWithPolynomial

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::SignRegularizedWithPolynomial : public Mechatronix::RegularizedBase

Sign function smoothed.

Inizialization

inline explicit SignRegularizedWithPolynomial()
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

\[\begin{split} \mathrm{sign}(x) = \begin{cases} 0 & x\leq -h \\[1em] \frac{2}{3}\displaystyle\frac{(x+h)^3}{h^3} & x\leq -h/2\\[1em] \frac{1}{6}\displaystyle\frac{3h^3+6\,h^2x-4\,x^3}{h^3} & x\leq h/2 \\[1em] \frac{1}{3}\displaystyle\frac{h^3+6\,h^2x-6\,hx^2+2\,x^3}{h^3} & x\leq h\\[1em] 1 & h<x \end{cases} \end{split}\]

../_images/SignRegularizedWithPolynomial0.jpeg

virtual real_type D(real_type x) const override

Evaluate regularized sign first derivarive

../_images/SignRegularizedWithPolynomial1.jpeg

virtual real_type DD(real_type x) const override

Evaluate regularized sign second derivative

../_images/SignRegularizedWithPolynomial2.jpeg

Info

virtual string info() const override