Searched refs:closestDistSq (Results 1 – 3 of 3) sorted by relevance
205 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp() local215 … closestDistSq[i] = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); in chooseCentersKMeanspp()216 closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); in chooseCentersKMeanspp()217 currentPot += closestDistSq[i]; in chooseCentersKMeanspp()236 if (randVal <= closestDistSq[index]) break; in chooseCentersKMeanspp()237 else randVal -= closestDistSq[index]; in chooseCentersKMeanspp()244 newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()259 … closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()265 delete[] closestDistSq; in chooseCentersKMeanspp()292 DistanceType* closestDistSq = new DistanceType[n]; in GroupWiseCenterChooser() local[all …]
204 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp() local212 … closestDistSq[i] = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); in chooseCentersKMeanspp()213 closestDistSq[i] = ensureSquareDistance<Distance>( closestDistSq[i] ); in chooseCentersKMeanspp()214 currentPot += closestDistSq[i]; in chooseCentersKMeanspp()233 if (randVal <= closestDistSq[index]) break; in chooseCentersKMeanspp()234 else randVal -= closestDistSq[index]; in chooseCentersKMeanspp()241 newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()256 … closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()262 delete[] closestDistSq; in chooseCentersKMeanspp()
591 double closestDistSq = SK_ScalarInfinity; in distSq() local597 if (closestDistSq > testDistSq) { in distSq()598 closestDistSq = testDistSq; in distSq()601 return closestDistSq; in distSq()