Compute the index of Rogers and Tanimoto
rogersTanimoto(p, q)# S4 method for Partition,Partition
rogersTanimoto(p, q)
# S4 method for PairCoefficients,missing
rogersTanimoto(p, q)
The partition
The partition
p = Partition,q = Partition
: Compute given two partitions
p = PairCoefficients,q = missing
: Compute given the pair coefficients
Fabian Ball fabian.ball@kit.edu
Rogers1960partitionComparison
isTRUE(all.equal(rogersTanimoto(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 3/7))
Run the code above in your browser using DataLab