Purity for clustering