} else { for (int d=0; d < D; ++d) { short newValue = (short)((float)roundFloat((double)centroids_accum[k][d] / (double)new_counts[k]));
} else { for (int d=0; d < D; ++d) { short newValue = (short)((float)roundFloat((double)centroids_accum[k][d] / (double)new_counts[k]));