Nyy is the number of points belonging to the same cluster both in part1 and part2
Nyn is the number of points belonging to the same cluster in part1 but not in part2
Nny is the number of points belonging to the same cluster in part2 but not in part1
Nnn is the number of points not belonging to the same cluster both in part1 and part2
Arguments
part1
[vector] : the first partition vector.
part2
[vector] : the second partition vector.
Author
Bernard Desgraupes [email protected]
University of Paris Ouest - Nanterre
Lab Modal'X (EA 3454)
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 partitionspart1<-sample(1:3,150,replace=TRUE)
part2<-sample(1:5,150,replace=TRUE)
# Compute the table of concordances and discordancesconcordance(part1,part2)