1.2.3-SNAPSHOT permalink Arrow_down_16x16

manhattan-distance

incanter.stats

  • (manhattan-distance a b)
http://en.wikipedia.org/wiki/Manhattan_distance

usual metric of Euclidean geometry is replaced by a new metric in which the distance between two points is the sum of the (absolute) differences of their coordinates. The taxicab metric is also known as rectilinear distance, L1 distance or l1 norm (see Lp space), city block distance, Manhattan distance, or Manhattan length

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/stats.clj:2972 top

(defn manhattan-distance
"http://en.wikipedia.org/wiki/Manhattan_distance

usual metric of Euclidean geometry is replaced by a new metric in which the distance between two points is the sum of the (absolute) differences of their coordinates. The taxicab metric is also known as rectilinear distance, L1 distance or l1 norm (see Lp space), city block distance, Manhattan distance, or Manhattan length"
 [a b]
(minkowski-distance a b 1))
Vars in incanter.stats/manhattan-distance: defn
Used in 0 other vars

Comments top

No comments for manhattan-distance. Log in to add a comment.