1.2.3-SNAPSHOT Arrow_down_16x16

normalized-kendall-tau-distance

incanter.stats

  • (normalized-kendall-tau-distance a b)

http://en.wikipedia.org/wiki/Kendall_tau_distance

Kendall tau distance is the total number of discordant pairs.

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

(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)))))
Vars in incanter.stats/normalized-kendall-tau-distance: * - / defn let
Used in 0 other vars

Comments top

No comments for normalized-kendall-tau-distance. Log in to add a comment.