1.2.3-SNAPSHOT
permalink

- (dice-coefficient a b)

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.

© incanter
See http://incanter.org for copyright and license details.

(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))))

© incanter
See http://incanter.org for copyright and license details.

Used in 0 other vars

## Comments top

## No comments for

dice-coefficient. Log in to add a comment.