ManhattanDistance
ManhattanDistance[u,v]
gives the Manhattan or "city block" distance between vectors u and v.
Examples
open allclose allBasic Examples (2)
Scope (2)
Properties & Relations (5)
Manhattan distance is a sum of absolute differences:
ManhattanDistance is equivalent to a Norm of a difference:
ManhattanDistance is greater than or equal to ChessboardDistance:
BrayCurtisDistance is a ratio of Manhattan distances:
MeanDeviation as a scaled ManhattanDistance from the Mean:
Text
Wolfram Research (2007), ManhattanDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/ManhattanDistance.html.
CMS
Wolfram Language. 2007. "ManhattanDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ManhattanDistance.html.
APA
Wolfram Language. (2007). ManhattanDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ManhattanDistance.html