final PrintWriter tw = this.prepareOutputFile(outputFile, analyst
.getScript().getNormalize().countActiveFields() - 1, 1);
resetStatus();
final KMeansClustering cluster = new KMeansClustering(clusters,
this.data);
cluster.iteration(iterations);
int clusterNum = 0;
for (final MLCluster cl : cluster.getClusters()) {
for (final MLData item : cl.getData()) {
final ClusterRow row = (ClusterRow) item;
final int clsIndex = row.getInput().size() - 1;
final LoadedRow lr = row.getRow();
lr.getData()[clsIndex] = "" + clusterNum;