powered by
This function computes the Adjusted Rand Index
ARI(x, y)
numeric
vector defining a partition.
vector defining a partition of whose length is equal to the length of x.
L. Hubert and P. Arabie (1985) Comparing Partitions, Journal of the Classification, 2, pp. 193-218.
x <- sample(1:2, 20, replace=TRUE) y <- x y[1:5] <- sample(1:2, 5, replace=TRUE) ARI(x, y)
Run the code above in your browser using DataLab