It is calculated using the mean intra-cluster distance and the mean nearestcluster distance for each sample.
the mean distance between each embedding and all other embeddings in the same cluster (mc), and the mean distance between the embedding and all other embeddings in the next nearest cluster (the nearest cluster that the embedding is not part of) (mn) are used to measure SC for the embedding: .