(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))))
Comments top
No comments for chebyshev-distance. Log in to add a comment.