This Function Calculates the True Error Rate of a Clustering Result, Assuming that There are Three Clusters.
Useful links