Searched refs:new_center (Results 1 – 3 of 3) sorted by relevance
196 const int new_center = (dist_accum[n] + accum[n] / 2) / accum[n]; in AssignSegments() local197 displaced += abs(centers[n] - new_center); in AssignSegments()198 centers[n] = new_center; in AssignSegments()199 weighted_average += new_center * accum[n]; in AssignSegments()
201 const int new_center = (dist_accum[n] + accum[n] / 2) / accum[n]; in AssignSegments() local202 displaced += abs(centers[n] - new_center); in AssignSegments()203 centers[n] = new_center; in AssignSegments()204 weighted_average += new_center * accum[n]; in AssignSegments()
375 float* new_center = centers.ptr<float>(k); in kmeans() local404 new_center[j] += sample[j]; in kmeans()