Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

distance between numpy arrays

dist = numpy.linalg.norm(a-b, ord=2) #ord=2 is default and means Euclidean distance, but I'm showing here that you can specify it
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distance #numpy #arrays
ADD COMMENT
Topic
Name
5+5 =