Computes the adjusted Rand Index that compares two partitions.
Two vectors of size n, indicating the group or cluster membership from each grouping. These vectors can be obtained from MATLAB functions such as kmeans or cluster.
Scalar value for the adjusted Rand Index.
ari = adjrand(p1,p2);
Everitt, B. S., S. Landau, and M. Leese. 2001. Cluster Analysis, Fourth Edition, New York: Edward Arnold Publishing.
Rand, William M. 1971. “Objective criteria for the evaluation of clustering methods,” Journal of the American Statistical Association, 66:846-850.