1.2.3-SNAPSHOT Arrow_down_16x16

dice-coefficient

incanter.stats

  • (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.

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

(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))))
Vars in incanter.stats/dice-coefficient: * + / defn let
Used in 0 other vars

Comments top

No comments for dice-coefficient. Log in to add a comment.