Adjusted Rand index
The adjusted Rand index (ARI) allows to compare two clustering partitions.
ari(x, y)
x
: The first partition to compare (as vector).y
: The second partition to compare (as vector).funLBM
x = sample(1:3,20,replace = TRUE) y = sample(1:3,20,replace = TRUE) ari(x,y)
Useful links