jaccardCoefficient | R Documentation |
Compute the Jaccard coefficient
\frac{N_{11}}{N_{11} + N_{10} + N_{01}}
jaccardCoefficient(p, q)
## S4 method for signature 'Partition,Partition'
jaccardCoefficient(p, q)
## S4 method for signature 'PairCoefficients,missing'
jaccardCoefficient(p, q = NULL)
p |
The partition |
q |
The partition |
jaccardCoefficient(p = Partition, q = Partition)
: Compute given two partitions
jaccardCoefficient(p = PairCoefficients, q = missing)
: Compute given the pair coefficients
Fabian Ball fabian.ball@kit.edu
Jaccard1908partitionComparison
isTRUE(all.equal(jaccardCoefficient(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 1/3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.