ChessboardDistance

ChessboardDistance[u,v]

gives the chessboard, Chebyshev, or sup norm distance between vectors u and v.

Details

Examples

open allclose all

Basic Examples  (2)

The chessboard distance between two vectors:

Chessboard distance between numeric vectors:

Scope  (2)

Compute the distance between any vectors of equal length:

Compute the distance between vectors of any precision:

Applications  (1)

Cluster data using chessboard distance:

Properties & Relations  (5)

Chessboard distance is the maximum of absolute differences:

Demonstrate the triangle inequality:

ChessboardDistance is equivalent to a Norm of a difference:

ChessboardDistance is less than or equal to ManhattanDistance:

ChessboardDistance is less than or equal to EuclideanDistance:

Introduced in 2007
 (6.0)