src/demo/TSP.java
void normalize(double xMin, double xMax, double yMin, double yMax) {
            double diagonal = Math.sqrt(Math.pow(xMax - xMin, 2) + Math.pow(yMax - yMin, 2));
            xNormalized = (x - xMin) / diagonal;
            yNormalized = (y - yMin) / diagonal;
        }
/**
         * Normalizes x and y coordinates
         *
         * @param xMin minimum value for x.
         * @param xMax maximum value for x.
         * @param yMin minimum value for y.
         * @param yMax maximum value for y.
         */
Normalizes x and y coordinates
@param xMin minimum value for x.
@param xMax maximum value for x.
@param yMin minimum value for y.
@param yMax maximum value for y.
Normalizes x and y coordinates @param xMin minimum value for x . @param xMax maximum value for x . @param yMin minimum value for y . @param yMax maximum value for y .
void normalize(double xMin, double xMax, double yMin, double yMax) {
            double diagonal = Math.sqrt(Math.pow(xMax - xMin, 2) + Math.pow(yMax - yMin, 2));
            xNormalized = (x - xMin) / diagonal;
            yNormalized = (y - yMin) / diagonal;
        }
void normalize ( double xMin , double xMax , double yMin , double yMax ) { double diagonal = Math . sqrt ( Math . pow ( xMax - xMin , 2 ) + Math . pow ( yMax - yMin , 2 ) ) ; xNormalized = ( x - xMin ) / diagonal ; yNormalized = ( y - yMin ) / diagonal ; }
Normalizes x and y coordinates
 @param xMin minimum value for x.
Normalizes x and y coordinates @param xMin minimum value for x .