code: protected void logVarstat(DoubleStatistic varstat, double[] varsum) {
      if(varstat != null) {
        double s = sum(varsum);
        getLogger().statistics(varstat.setDouble(s));
      }
    }
docs: Log statistics on the variance sum.
  
  @param varstat Statistics log instance
  @param varsum Variance sum per cluster