(defn normalized-kendall-tau-distance
"
http://en.wikipedia.org/wiki/Kendall_tau_distance
Kendall tau distance is the total number of discordant pairs.
"
[a b]
(let [n (count a)
discords (discordant-pairs a b)]
(/ (* 2 discords)
(* n (- n 1)))))
Comments top
No comments for normalized-kendall-tau-distance. Log in to add a comment.