m_squaredErrors[bestCluster] += minDist;
if (updateErrors) { m_squaredErrors[bestCluster] += minDist; }
  private int clusterProcessedInstance(Instance instance) {    double minDist = Integer.MAX_VALUE;    int bestCluster = 0;    for (int i = 0; i < m_NumClusters; i++) {      double dist = distance(instance, m_ClusterCentroids.instance(i));      if (dist < minDist) {	minDist = dist;	bestCluster = i;      }    }    m_squaredErrors[bestCluster] += minDist;    return bestCluster;  }