Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created September 19, 2020 03:41
Show Gist options
  • Save MCarlomagno/7d813af59d2b33c68aec950b8badd59d to your computer and use it in GitHub Desktop.
Save MCarlomagno/7d813af59d2b33c68aec950b8badd59d to your computer and use it in GitHub Desktop.
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