Вот мой метод:
Код: Выделить всё
public static double calculateDistance(int[] array1, int[] array2)
{
double distance = 0.0;
for(int i=0;i
Подробнее здесь: [url]https://stackoverflow.com/questions/49469921/euclidean-distance-between-two-variables[/url]
Мобильная версия