Euclidean distance (source code)

= Euclidean distance
{wiki}

The Euclidean distance between $x,y\in\mathbb R^d$ is
$$
\|x-y\|_2=\sqrt{\sum_{i=1}^d(x_i-y_i)^2}.
$$