get distance between 2 multidimentional point in python

40

get distance between 2 multidimentional point in python -

>>> from scipy.spatial import distance
>>> distance.euclidean([1, 0, 0], [0, 1, 0])
1.4142135623730951
>>> distance.euclidean([1, 1, 0], [0, 1, 0])
1.0

Comments

Submit
0 Comments