Explanation: Euclidean distance is also called Euclidean metric. Used to define the distance of multidimensional space.
Understand:
1. Firstly, the coordinates of two points X and Y in n-dimensional space are defined as () and () respectively.
For example, in one dimension, and
In two-dimensional space, sum
etc ...
In the n dimension, sum.
2. Calculate the Euclidean distance between two points.
In two-dimensional space, the distance between two points is:
?
In the n dimension, the distance between two points is:
?