(defn dice-coefficient
"
http://en.wikipedia.org/wiki/Dice%27s_coefficient
Dice's coefficient (also known as the Dice coefficient) is a similarity measure related to the Jaccard index.
"
[a b]
(let [an (count a)
bn (count b)
cn (count (intersection a b))]
(/ (* 2 cn)
(+ an bn))))
Comments top
No comments for dice-coefficient. Log in to add a comment.