Euclidean Distance

Hi, can someone, explain me better this formula:

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

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