Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static float getEuclideanDistance(float[] arr1, float[] arr2) {
        float minSum = 0;
        for (int i = 0; i < arr1.length; i++) {
            minSum += Math.pow(arr1[i] - arr2[i], 2);
        }
        return minSum;
    }
}