calculate euclidian distance python

50

-

dist = numpy.linalg.norm(a-b)

calculate euclidian distance python -

from scipy.spatial import distance
a = (1, 2, 3)
b = (4, 5, 6)
dst = distance.euclidean(a, b)

Comments

Submit
0 Comments