System.out.println("Finished Starting threads......");
- long start=System.currentTimeMillis();
for (int i = 0; i < nloops; i++) {
/*
* Since zscore transform may perform in cluster() which modifies the
kms, //main class that holds users inputs from command prompt and output arrays that need to be filled
g_args); // Global arguments common to all threads
}
- long stop=System.currentTimeMillis();
- long diff=stop-start;
- System.out.println("TIME="+diff);
+
+ System.out.println("TIME="+g_args.global_time);
System.out.println("Printing output......");
System.out.println("Best_nclusters= " + kms.best_nclusters);
float[][] new_centers = new float[nclusters][nfeatures];
int loop = 0;
+
+ long start=System.currentTimeMillis();
do {
delta = 0.0f;
delta /= npoints;
} while ((delta > threshold) && (loop++ < 500));
+ long stop=System.currentTimeMillis();
+ args.global_time+=(stop-start);
return clusters;
}