// See line 17 of the algorithm.
double delta = Double.MAX_VALUE;
CandidateCluster closest = null;
for (CandidateCluster y : consolidated) {
double similarity =
simFunc.sim(x.centerOfMass(), y.centerOfMass());
double invSim = invertSim(similarity);
if (invSim < delta) {
delta = invSim;
closest = y;
}