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