Function sansmic::bound#

Function Documentation#

double sansmic::bound(double value, double low, double high)#

bound a value within a certain range

Parameters:
  • value – original value

  • low – bound on low end

  • high – bound on high end

Returns:

double bounded value