scipy.spatial.distance.euclidean

scipy.spatial.distance.euclidean(u, v)[source]

Computes the Euclidean distance between two n-vectors u and v, which is defined as

{||u-v||}_2

Parameters :

u : ndarray

An n-dimensional vector.

v : ndarray

An n-dimensional vector.

Returns :

d : double

The Euclidean distance between vectors u and v.

Previous topic

scipy.spatial.distance.dice

Next topic

scipy.spatial.distance.hamming