Go to the documentation of this file.
21 #ifndef __MLPACK_CORE_MATH_CLAMP_HPP
22 #define __MLPACK_CORE_MATH_CLAMP_HPP
40 return (d + fabs(d)) / 2;
52 return (d - fabs(d)) / 2;
64 const double rangeMin,
65 const double rangeMax)
77 #endif // __MLPACK_CORE_MATH_CLAMP_HPP