math - Calculate Euclidean distance between 4-dimensional vectors -
Assume that I have two 4-dimensional vectors (such as A and B) as follows:
<
How do I calculate Euclidean distance between these Vectors?
Euclidean distance calculus dimension Is free.
In your case, Eclidian distance between A and B can be written: d (a, b) = sqrt (sum_ {i = 1} ^ {4} (a [i] - b [I]) ^ 2).
Or, more specifically: D (A, B) = sqrt (a1-b1) ^ 2 + (A2-B2) ^ 2 + (A3-B3) ^ 2 + (A4-B4) ^ 2).
Comments
Post a Comment