Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distance #multidimentional #point #python
ADD COMMENT
Topic
Name
1+5 =