src/Perturb.cpp
/**
 * \brief Saturate a value between min_range and max_range.
 */
\brief Saturate a value between min_range and max_range.
\ brief Saturate a value between min_range and max_range .
float Perturb::clamp(const float val, const float min_range, const float max_range)
{
  if (val < min_range)      return min_range;
  else if (val > max_range) return max_range;
  else                      return val;
}
float Perturb :: clamp ( const float val , const float min_range , const float max_range ) { if ( val < min_range ) return min_range ; else if ( val > max_range ) return max_range ; else return val ; }
\brief Saturate a value between min_range and max_range.
\ brief Saturate a value between min_range and max_range .