src/utils/matrix/AbstractMatrix.java
public Matrix minMax(Matrix other, double newMinimum, double newMaximum) throws MatrixException {
        double minimum = other.min();
        double maximum = other.max();
        double delta = maximum - minimum != 0 ? maximum - minimum : 1;
        return other.apply(other, (Matrix.MatrixUnaryOperation & Serializable) (value) -> (value - minimum) / delta * (newMaximum - newMinimum) + newMinimum);
    }
/**
     * Normalizes (scales) other matrix to new min and max values.<br>
     * Applies masking element wise if this or other matrix is masked.<br>
     *
     * @param other other matrix to be scaled.
     * @param newMinimum new minimum value.
     * @param newMaximum new maximum value.
     * @return scaled result matrix.
     * @throws MatrixException not thrown in any situation.
     */
Normalizes (scales) other matrix to new min and max values.
Applies masking element wise if this or other matrix is masked.

@param other other matrix to be scaled.
@param newMinimum new minimum value.
@param newMaximum new maximum value.
@return scaled result matrix.
@throws MatrixException not thrown in any situation.
Normalizes ( scales ) other matrix to new min and max values . Applies masking element wise if this or other matrix is masked . @param other other matrix to be scaled . @param newMinimum new minimum value . @param newMaximum new maximum value . @return scaled result matrix . @throws MatrixException not thrown in any situation .
public Matrix minMax(Matrix other, double newMinimum, double newMaximum) throws MatrixException {
        double minimum = other.min();
        double maximum = other.max();
        double delta = maximum - minimum != 0 ? maximum - minimum : 1;
        return other.apply(other, (Matrix.MatrixUnaryOperation & Serializable) (value) -> (value - minimum) / delta * (newMaximum - newMinimum) + newMinimum);
    }
public Matrix minMax ( Matrix other , double newMinimum , double newMaximum ) throws MatrixException { double minimum = other . min ( ) ; double maximum = other . max ( ) ; double delta = maximum - minimum != 0 ? maximum - minimum : 1 ; return other . apply ( other , ( Matrix . MatrixUnaryOperation & Serializable ) ( value ) -> ( value - minimum ) / delta * ( newMaximum - newMinimum ) + newMinimum ) ; }
Normalizes (scales) other matrix to new min and max values.<br>
 Applies masking element wise if this or other matrix is masked.<br>
Normalizes ( scales ) other matrix to new min and max values . <br > Applies masking element wise if this or other matrix is masked . <br >