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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -