purity function

Purity and Entropy of a Clustering