Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

distance matrix in python

>>> from scipy.spatial import distance_matrix
>>> distance_matrix([[0,0],[0,1]], [[1,0],[1,1]])
array([[ 1.        ,  1.41421356],
       [ 1.41421356,  1.        ]])
Source by docs.scipy.org #
 
PREVIOUS NEXT
Tagged: #distance #matrix #python
ADD COMMENT
Topic
Name
8+8 =