/** * Calculates the L2 (Euclidean) distance between two points. * * @param vector1 * @param vector2 * @return */ public static double euclideanDistance(double[] vector1, double[] vector2) { return MathUtils.distance(vector1, vector2); }