Minkowski distance

The Minkowski distance or Minkowski metric is a family of distance functions on a real coordinate space, defined by taking the th power along each coordinate, given a positive parameter . That is, it is the distance function associated to a p-norm. It is a generalization of both the Euclidean distance () and the Manhattan distance (). It is named after the mathematician Hermann Minkowski.

Comparison of Chebyshev, Euclidean and taxicab/Manhattan distances for the hypotenuse of a 3-4-5 triangle on a chessboard (represented by a king, an ant, and a wazir). The wazir moves like a rook but only one square at a time.