• incanter

1.2.3-SNAPSHOT

# 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.

### 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