Class ClipIntervalWithErf¶
Defined in File RegularizedClip.hxx
Inheritance Relationships¶
Base Type¶
public Mechatronix::IntervalBase
(Class IntervalBase)
Class Documentation¶
-
class
Mechatronix
::
ClipIntervalWithErf
: public Mechatronix::IntervalBase¶
-
interval clipping class
Inizialization
-
inline
ClipIntervalWithErf
()¶
-
void
setup
(real_type h, real_type delta = 0)¶
-
Set
h
anddelta
for the approximation of characteristic of clippin function: \( \textrm{clip}(x) \approx \max\{-1,\min\{1,x\}\} \)\[ \mathrm{clip}(x) = \displaystyle\frac{1}{2}\left( (x+1)\textrm{erf}(\kappa\,(x+1)) -(x-1)\mathrm{erf}(\kappa\,(x-1)) +\frac{ \mathrm{e}^{-\kappa^2(x+1)^2} - \mathrm{e}^{-\kappa^2(x-1)^2} } { \kappa\,\sqrt{\pi} } \right) \]where
\[ \mathrm{clip}(1) = 1-h \]the true clipping is
\[ (1-\delta)\mathrm{clip}(x) + \delta\,x \]
-
void
setup
(GenericContainer const &gc)¶
Evaluate
Info
-
virtual string
info
() const override¶
-
inline