Class PositivePartRegularizedWithPolynomial

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::PositivePartRegularizedWithPolynomial : public Mechatronix::RegularizedBase

Positive part smoothed.

Inizialization

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

Initialize PositivePartRegularizedWithSinAtan given h

inline void update_h(real_type h)

Evaluate

virtual real_type operator()(real_type x) const override

Evaluate

\[\begin{split} f(x) = \begin{cases} 0 & x < -h \\ \frac{h}{6}\left( 1+{\frac {x}{h}} \right) ^{3} & x<0 \\[1em] x+\frac{h}{6}\left( 1-{\frac {x}{h}} \right) ^{3} & x<h \\[1em] x & \textrm{otherwise} \end{cases} \end{split}\]

../_images/PositivePartRegularizedWithPolynomial0.jpeg

virtual real_type D(real_type x) const override

../_images/PositivePartRegularizedWithPolynomial1.jpeg

virtual real_type DD(real_type x) const override

../_images/PositivePartRegularizedWithPolynomial2.jpeg

Info

virtual string info() const override