Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

distance euc of two arrays python

# Use numpy.linalg.norm:
import numpy as np

a = np.array([1.0, 3.5, -6.3])
b = np.array([4.5, 1.6,  1.2])

dist = np.linalg.norm(a-b)
 
PREVIOUS NEXT
Tagged: #distance #euc #arrays #python
ADD COMMENT
Topic
Name
8+6 =