code: public static double normalize(Range range, double value) {
          return normalize(value, range.getMinimum().doubleValue(), range.getMaximum().doubleValue());
      }
docs: 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.
  
  @param range a range
  @param value a value
  @return the value transformed based on the range