Description Usage Arguments Value Examples
Calculate the Jaccard Index between two vectors
1 2 3 | jaccardIndex(x, y)
jaccardDistance(x, y)
|
x |
A vector |
y |
A vector |
The Jaccard Index, a number between 0 and 1
JaccardDistance
is defined as 1-JaccardIndex
.
1 2 3 4 5 6 7 8 9 | myX <- 1:6
myY <- 4:9
jaccardIndex(myX, myY)
jaccardDistance(myX, myY)
myX <- LETTERS[1:5]
myY <- LETTERS[6:10]
jaccardIndex(myX, myY)
jaccardDistance(myX, myY)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.