1.2.3-SNAPSHOT permalink Arrow_down_16x16

jaccard-index

incanter.stats

  • (jaccard-index a b)

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

The Jaccard index, also known as the Jaccard similarity coefficient (originally coined coefficient de communauté by Paul Jaccard), is a statistic used for comparing the similarity and diversity of sample sets.

The Jaccard coefficient measures similarity between sample sets, and is defined as the size of the intersection divided by the size of the union of the sample sets.

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

(defn jaccard-index 
"
http://en.wikipedia.org/wiki/Jaccard_index

The Jaccard index, also known as the Jaccard similarity coefficient (originally coined coefficient de communaut?© by Paul Jaccard), is a statistic used for comparing the similarity and diversity of sample sets.

The Jaccard coefficient measures similarity between sample sets, and is defined as the size of the intersection divided by the size of the union of the sample sets."
[a b]
 (/ (count (intersection a b))
    (count (union a b))))
Vars in incanter.stats/jaccard-index: / count defn
Used in 0 other vars

Comments top

No comments for jaccard-index. Log in to add a comment.