1.2.3-SNAPSHOT Arrow_down_16x16

chebyshev-distance

incanter.stats

  • (chebyshev-distance a b)
In the limiting case of Lp reaching infinity we obtain the Chebyshev distance.

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:2962 top

(defn chebyshev-distance
"In the limiting case of Lp reaching infinity we obtain the Chebyshev distance."
[a b]
(let [_ (assert (= (count a) (count b)))]
  (apply
   tree-comp-each
   max 
  (fn [[x y]] (- x y))
  (map vector a b))))
Vars in incanter.stats/chebyshev-distance: - apply defn fn let map max vector
Used in 0 other vars

Comments top

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