rogersTanimoto {partitionComparison} | R Documentation |
Rogers & Tanimoto Index
Description
Compute the index of Rogers and Tanimoto
\frac{N_{11} + N_{00}}{N_{11} + 2(N_{10} + N_{01}) + N_{00}}
Usage
rogersTanimoto(p, q)
## S4 method for signature 'Partition,Partition'
rogersTanimoto(p, q)
## S4 method for signature 'PairCoefficients,missing'
rogersTanimoto(p, q)
Arguments
p |
The partition |
q |
The partition |
Methods (by class)
-
rogersTanimoto(p = Partition, q = Partition)
: Compute given two partitions -
rogersTanimoto(p = PairCoefficients, q = missing)
: Compute given the pair coefficients
Author(s)
Fabian Ball fabian.ball@kit.edu
References
Rogers DJ, Tanimoto TT (1960). “A Computer Program for Classifying Plants.” Science, 132(3434), 1115–1118. ISSN 0036-8075, 1095-9203, doi:10.1126/science.132.3434.1115.
Examples
isTRUE(all.equal(rogersTanimoto(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 3/7))
[Package partitionComparison version 0.2.6 Index]