This package provides a large collection of measures to compare two
partitions. Some survey articles for these measures are cited below,
the seminal papers for each individual measure is provided with the
function definition.
Most functionality is implemented as S4 classes and methods so that an
adoption is easily possible for special needs and specifications.
The main class is Partition
which merely wraps an atomic
vector of length \(n\) for storing the class label of each object.
The computation of all measures is designed to work on vectors
of class labels.
All partition comparison methods can be called in the
same way: <measure method>(p, q)
with p, q
being the two
partitions (as Partition
instances).
One often does not explicitly want to transform the vector of class labels
(as output of another package's function/algorithm) into
Partition
instances before using measures from this
package. For convenience, the function
registerPartitionVectorSignatures
exists which dynamically creates
versions of all measures that will directly work with plain R vectors.