Euclidean Distance
- Tags
- math
Is a measure of the distance between two points in some \( n \) dimensional space.
For example if the two points are \( p \) and \( q \):
\begin{align} l = \sqrt{\sum_{i}^{n} (p_i - q_i)^2} \end{align}
Similarly if we just want to find the distance between two points, we can calculate the distance of the vector between them:
\begin{align} l = \sqrt{(p_1 - q_1)^2 + (p_2 - q_2)^2} \end{align}