concordance calculates the concordance matrix between two partitions
of the same data.
Usage
concordance(part1, part2)
Arguments
part1
[vector] : the first partition vector.
part2
[vector] : the second partition vector.
Details
Given two partitions, the function concordance calculates the
number of pairs classified as belonging or not belonging to the same
cluster with respect to partitions part1 or part2.
# Generate two artificial partitions
part1<-sample(1:3,150,replace=TRUE)
part2<-sample(1:5,150,replace=TRUE)
# Compute the table of concordances and discordances
concordance(part1,part2)