Find the total avg similarity between instances and centroids