This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ManhattanDistance

ManhattanDistance
gives the Manhattan or "city block" distance between vectors u and v.
Manhattan distance between two vectors:
Manhattan distance between numeric vectors:
Manhattan distance between two vectors:
In[1]:=
Click for copyable input
Out[1]=
 
Manhattan distance between numeric vectors:
In[1]:=
Click for copyable input
Out[1]=
Compute distance between any vectors of equal length:
Compute distance between vectors of any precision:
Cluster data using Manhattan distance:
Demonstrate the triangle inequality:
Manhattan distance is a sum of absolute differences:
ManhattanDistance is equivalent to a Norm of a difference:
ManhattanDistance is greater than or equal to ChebyshevDistance:
BrayCurtisDistance is a ratio of Manhattan distances:
MeanDeviation as a scaled ManhattanDistance from the Mean:
New in 6