1

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

JahKnows
  • 8,866
  • 30
  • 45
user53682
  • 11
  • 1
  • 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? – JahKnows Jun 15 '18 at 00:53

1 Answers1

1

The Euclidean distance between 2 vectors

$\mathbf{u}$: $(u_1, u_2, ... , u_n)$ and $\mathbf{v}$: $(v_1, v_2, ... , v_n)$

is simply

$\sqrt{(u_1-v_1)^2+(u_2-v_2)^2+...+(u_n-v_n)^2}$

Stephen Rauch
  • 1,783
  • 11
  • 22
  • 34