code: protected final void updateDistances( List<double[]> points , double []clusterNew ) {
  		totalDistance = 0;
  		for (int i = 0; i < distance.size(); i++) {
  			double dOld = distance.get(i);
  			double dNew = StandardKMeans_F64.distanceSq(points.get(i),clusterNew);
  			if( dNew < dOld ) {
  				distance.data[i] = dNew;
  				totalDistance += dNew;
  			} else {
  				totalDistance += dOld;
  			}
  		}
  	}
docs: Updates the list of distances from a point to the closest cluster.  Update list of total distances