Euclidean Distance

Hi, can someone, explain me better this formula: https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.euclidean.html#scipy.spatial.distance.euclidean

I don´t understand if the formula is just this: ||u-v||^2
Or the second formula.
Thanks.

The formula is ||u-v||_2 (note this has a square root included) and the weights being 1 in all dimensions. Please note that you have a ^2 in your formula. And the second one (in the documentation) with a w implies ‘if the weights are specified’. Hope this makes sense.

1 Like