nd4j-common/src/main/java/org/nd4j/linalg/util/MathUtils.java
public static double normalize(double val, double min, double max) {
        if (max < min)
            throw new IllegalArgumentException("Max must be greather than min");

        return (val - min) / (max - min);
    }
public static double normalize(double val, double min, double max) {
        if (max < min)
            throw new IllegalArgumentException("Max must be greather than min");

        return (val - min) / (max - min);
    }
public static double normalize ( double val , double min , double max ) { if ( max < min ) throw new IllegalArgumentException ( "Max must be greather than min" ) ; return ( val - min ) / ( max - min ) ; }
Normalize a value
(val - min) / (max - min)

@param val value to normalize
@param max max value
@param min min value
@return the normalized value
Normalize a value ( val - min ) / ( max - min )