Class DiffModuleN

Inheritance Relationships

Base Type

Class Documentation

class Mechatronix::DiffModuleN : public Mechatronix::RegularizedBase

Class implementing \( x \; \textrm{mid} \; N \)

\[ \textrm{DiffModuleN}( x ) = x+k N, \qquad\textrm{where}\qquad x+k N \in [0,N) \]

Inizialization

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

Initialize regularization parameters with a GenericContainer. expect to find gc("N") containing a real scalar

void setup(real_type N)

set the range to wrap \( [0,N) \)

inline void update_N(real_type N)

update the range to wrap \( [0,N) \)

Evaluate

virtual real_type operator()(real_type x) const override
virtual real_type D(real_type x) const override

compute first derivative of regularized function

virtual real_type DD(real_type x) const override

compute second derivative of regularized function

Info

virtual string info() const override