ManhattanDistance

ManhattanDistance[u,v]

gives the Manhattan or "city block" distance between vectors u and v.

Details

Examples

open all close all

Basic Examples  (2)

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]=

Scope  (2)

Applications  (2)

Properties & Relations  (5)

Introduced in 2007
(6.0)