Easy clustering evaluation in MATLAB.
Copyright (c) 2015 Taehoon Lee
Input arguments are two clustering results and metric name.
clustereval(a, b, 'metric name')
X = rand(100, 2);
Z = linkage(X, 'average', 'euclidean');
a = cluster(Z, 'maxclust', 4);
b = kmeans(X, 4);
clustereval(a, b, 'ari') % adjusted Rand index