Searched refs:groupSum (Results 1 – 1 of 1) sorted by relevance
212 Point[] groupSum = new Point[maxK]; // sum of points in each group. in kMeans() local218 groupSum[i] = new Point(); in kMeans()244 groupSum[i].latRad = 0; in kMeans()245 groupSum[i].lngRad = 0; in kMeans()270 groupSum[bestIndex].latRad += p.latRad; in kMeans()271 groupSum[bestIndex].lngRad += p.lngRad; in kMeans()278 center[i].latRad = groupSum[i].latRad / groupCount[i]; in kMeans()279 center[i].lngRad = groupSum[i].lngRad / groupCount[i]; in kMeans()