Computes the dissimilarity contained in a distance matrix which is explained by a clustering solution.