code: public double normalizedDistance(double[] point1, double[] point2) throws Exception {
      return Math.sqrt(distance2(point1, point2)) / point1.length;
    }
docs: Calculates the Normalized Euclidean distance between two points.
  
  @param point1 The first point.
  @param point2 The second point.
  @return The Euclidean distance.
  @throws Exception In the case of error.