Definition Edit

Given a number set E, the Manhattan distance is a function ManhattanDis:E^n\times E^n \longrightarrow \mathbb{R} defined as


Examples Edit

  • ManhattanDis((1,2,3,4),(4,3,2,1)) = 3+1+1+3 = 8.
  • ManhattanDis((1,0,1,0,1),(1,1,0,0,1)) = 0+1+1+0+0 = 2.

Normalization Edit

If E is a bounded set, is possible to normalize the difference dividing by the range of E, then normalization is


that is the aritmetic mean of the normalized differences.

Examples Edit

  • If E=[0,10], ManhattanSim((1,2,3,4),(4,3,2,1)) = 1-\frac{0.3+0.1+0.1+0.3}{4} = 0.8.
  • If E=\{0,1\}, ManhattanSim((1,0,1,0,1),(1,1,0,0,1)) = 1-\frac{0+1+1+0+0}{5} = 0.6.

Variations Edit

Applications Edit

  • Numeric vectors (codes).
  • Vectors of boolean features.

References Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.