Searched refs:bestNewIndex (Results 1 – 2 of 2) sorted by relevance
229 int bestNewIndex = 0; in chooseCentersKMeanspp() local250 bestNewIndex = index; in chooseCentersKMeanspp()255 centers[centerCount] = dsindices[bestNewIndex]; in chooseCentersKMeanspp()258 …DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols… in chooseCentersKMeanspp()310 int bestNewIndex = 0; in GroupWiseCenterChooser() local327 bestNewIndex = index; in GroupWiseCenterChooser()334 centers[centerCount] = dsindices[bestNewIndex]; in GroupWiseCenterChooser()336 …stSq[i] = std::min( distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols) in GroupWiseCenterChooser()
226 int bestNewIndex = -1; in chooseCentersKMeanspp() local247 bestNewIndex = index; in chooseCentersKMeanspp()252 centers[centerCount] = indices[bestNewIndex]; in chooseCentersKMeanspp()255 …DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[bestNewIndex]], dataset_.cols… in chooseCentersKMeanspp()