# Euclidean distance for more than 2 datapoints

I need to compare $n$ 3-dimensional vectors with $k$ 3-dimensional vectors using euclidean distance. Is that possible?

• Getting the Euclidean distance between 2 3D points is no problem. Then to get the Euclidean distance from $n$ points to $k$ points. Do you want the addition of all these distances, or the average, or what? Jun 15, 2018 at 0:53

$\mathbf{u}$: $(u_1, u_2, ... , u_n)$ and $\mathbf{v}$: $(v_1, v_2, ... , v_n)$
$\sqrt{(u_1-v_1)^2+(u_2-v_2)^2+...+(u_n-v_n)^2}$