44 #include <g2o/stuff/misc.h> 61 return (-var - (a - epsilon));
69 return (var - (a - epsilon));
86 return (-var + (a + epsilon));
94 return (var - (b - epsilon));
109 if (var >= a+epsilon)
115 return (-var + (a+epsilon));
129 if (var < -a+epsilon)
133 if (var <= a-epsilon)
158 if (var <= b-epsilon)
179 if (var >= a+epsilon)
193 #endif // PENALTIES_H double penaltyBoundFromBelow(const double &var, const double &a, const double &epsilon)
Linear penalty function for bounding var from below: .
double penaltyBoundToInterval(const double &var, const double &a, const double &epsilon)
Linear penalty function for bounding var to the interval .
double penaltyBoundToIntervalDerivative(const double &var, const double &a, const double &epsilon)
Derivative of the linear penalty function for bounding var to the interval .
double penaltyBoundFromBelowDerivative(const double &var, const double &a, const double &epsilon)
Derivative of the linear penalty function for bounding var from below: .