Using this metric, we apply single-linkage agglomerative clustering, with the stopping criteria defined as a threshold τ for the maximum sum of squared errors (SSE) within any cluster.
the algorithm stops linking if the cluster C that would be created by the next link satisfies: Where µ C is the centroid of C and d is the Euclidean distance.