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:

Wolfram Research (2007), ChessboardDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/ChessboardDistance.html.

Text

Wolfram Research (2007), ChessboardDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/ChessboardDistance.html.

CMS

Wolfram Language. 2007. "ChessboardDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChessboardDistance.html.

APA

Wolfram Language. (2007). ChessboardDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChessboardDistance.html

BibTeX

@misc{reference.wolfram_2023_chessboarddistance, author="Wolfram Research", title="{ChessboardDistance}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ChessboardDistance.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_chessboarddistance, organization={Wolfram Research}, title={ChessboardDistance}, year={2007}, url={https://reference.wolfram.com/language/ref/ChessboardDistance.html}, note=[Accessed: 19-March-2024 ]}