Euclidean distance is a measure of the straight-line distance between any two points in a Euclidean space. Its quite literally just the Pythagorean theorem but scaled up quite a bit. Similar to cosine similarity, euclidean distance is often used to measure similarity within an embedding domain.
The general formula for Euclidean distance in -dimensional space is
In one-dimensional space:
In two-dimensional space:
In three-dimensional space:
Euclidean distance has the following key properties:
- It is non-negative
- It is symmetric
- It has triangle inequality