public static double normalize ( Range range , double value ) { return normalize ( value , range . getMinimum ( ) . doubleValue ( ) , range . getMaximum ( ) . doubleValue ( ) ) ; }
Returns the value normalized within the range . It performs a linear transformation where the minimum value of the range becomes 0 while the maximum becomes 1 .