ManhattanDistance
ManhattanDistance(u, v)
returns the Manhattan distance between
u
andv
, which is the number of horizontal or vertical moves in the grid like Manhattan city layout to get fromu
tov
.
See:
Examples
>> ManhattanDistance({-1, -1}, {1, 1})4
Related terms
FindClusters, BinaryDistance, BrayCurtisDistance, ChessboardDistance, CanberraDistance, CosineDistance, EuclideanDistance, SquaredEuclideanDistance
Implementation status
- ✅ - full supported