Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Sequence Alignment & Comparison > Distance and Similarity Measures >
Mathematica > Data Manipulation > Numerical Data > Exploratory Data Analysis > Distance and Similarity Measures >
Mathematica > Data Manipulation > Statistics > Exploratory Data Analysis > Distance and Similarity Measures >

ChessboardDistance

ChessboardDistance[u, v]
gives the chessboard, Chebyshev or sup norm distance between vectors u and v.
The chessboard distance between two vectors:
Chessboard distance between numeric vectors:
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]=
Compute the distance between any vectors of equal length:
Compute the distance between vectors of any precision:
Cluster data using Chessboard distance:
Demonstrate the triangle inequality:
Chessboard distance is the maximum of absolute differences:
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:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team