Algorithms
Distance measures for data science: Manhattan, Euclidean and Minkowski.
1 min read
Distance Measures

Manhattan Distance
Manhattan distance calculates the distance between two real-valued vectors.
Euclidean Distance
Euclidean distance calculates the distance between two real-valued vectors.
Minkowski Distance
Minkowski distance calculates the distance between two real-valued vectors.
It is a generalization of the Euclidean and Manhattan distance measures and adds a parameter, called the “order” or “p“, that allows different distance measures to be calculated.
- is an integer
- is a real-valued vector
- is a real-valued vector
- Manhattan distance
- Euclidean distance
- Chebyshev distance