Created
September 19, 2020 03:41
-
-
Save MCarlomagno/7d813af59d2b33c68aec950b8badd59d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double _euclideanDistance(List e1, List e2) { | |
double sum = 0.0; | |
for (int i = 0; i < e1.length; i++) { | |
sum += pow((e1[i] - e2[i]), 2); | |
} | |
return sqrt(sum); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment