R/utility.R
ARI.Rd
Compare two clustering with the Adjusted Rand Index
ARI(x, y)
A vector of integers, the clusters labels
A vector of integers of the same length as x, the clusters labels
A number between 0 (random clustering) and 1 (identical clustering)
ARI(x = c(1, 2, 1), y = c(2, 2, 1)) #> [1] -0.5