Class IntervalBase

Inheritance Relationships

Derived Types

Class Documentation

class Mechatronix::IntervalBase

Subclassed by Mechatronix::ClipInterval, Mechatronix::ClipIntervalWithErf, Mechatronix::ClipIntervalWithPolynomial, Mechatronix::ClipIntervalWithSinAtan, Mechatronix::ClipIntervalWithTanh

Public Functions

inline explicit IntervalBase()
inline virtual ~IntervalBase()
real_type operator()(real_type x, real_type a, real_type b) const

Compute \( \textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_1(real_type x, real_type a, real_type b) const

Compute \( \displaystyle\frac{\partial}{\partial_x} \textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_2(real_type x, real_type a, real_type b) const

Compute \( \partial_a\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_3(real_type x, real_type a, real_type b) const

Compute \( \partial_b\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_1_1(real_type x, real_type a, real_type b) const

Compute \( \displaystyle\frac{\partial}{\partial_x}\displaystyle\frac{\partial}{\partial_x} \textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_1_2(real_type x, real_type a, real_type b) const

Compute \( \displaystyle\frac{\partial}{\partial_x}\partial_a\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_1_3(real_type x, real_type a, real_type b) const

Compute \( \displaystyle\frac{\partial}{\partial_x}\partial_b\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_2_2(real_type x, real_type a, real_type b) const

Compute \( \partial_a\partial_a\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_2_3(real_type x, real_type a, real_type b) const

Compute \( \partial_a\partial_b\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

real_type D_3_3(real_type x, real_type a, real_type b) const

Compute \( \partial_b\partial_b\textrm{eval}\left((2x-(a+b))/(b-a)\right) \).

virtual string info() const = 0
inline void info(ostream_type &stream) const

Protected Functions

virtual real_type eval(real_type x) const = 0

evaluate penalty

virtual real_type eval_D(real_type x) const = 0

evaluate penalty first derivative

virtual real_type eval_DD(real_type x) const = 0

evaluate penalty second derivative