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:

In[1]:=
Click for copyable input
Out[1]=

Chessboard distance between numeric vectors:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Applications  (1)

Properties & Relations  (5)

See Also

ManhattanDistance  EuclideanDistance  SquaredEuclideanDistance  BrayCurtisDistance  CanberraDistance  CornerNeighbors

Tutorials

Introduced in 2007
(6.0)