Home
last modified time | relevance | path

Searched refs:closestDistSq (Results 1 – 3 of 3) sorted by relevance

/external/opencv3/modules/flann/include/opencv2/flann/
Dhierarchical_clustering_index.h205 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp() local
215closestDistSq[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()
259closestDistSq[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 …]
Dkmeans_index.h204 DistanceType* closestDistSq = new DistanceType[n]; in chooseCentersKMeanspp() local
212closestDistSq[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()
256closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); in chooseCentersKMeanspp()
262 delete[] closestDistSq; in chooseCentersKMeanspp()
/external/skia/src/pathops/
DSkOpSegment.cpp591 double closestDistSq = SK_ScalarInfinity; in distSq() local
597 if (closestDistSq > testDistSq) { in distSq()
598 closestDistSq = testDistSq; in distSq()
601 return closestDistSq; in distSq()