From: bdemsky Date: Fri, 16 Oct 2009 03:17:25 +0000 (+0000) Subject: back out change X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=66e15023c29e433eab6c8e6e3e153584755793bd;p=IRC.git back out change --- diff --git a/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java b/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java index 1ce66cc9..25b425e1 100644 --- a/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java +++ b/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java @@ -223,7 +223,7 @@ public class Normal { /* Replace old cluster centers with new_centers */ for (int i = 0; i < nclusters; i++) { for (int j = 0; j < nfeatures; j++) { - if (new_centers_len != null) { + if (new_centers_len[i] > 0) { clusters[i][j] = new_centers[i][j] / new_centers_len[i]; } new_centers[i][j] = (float)0.0; /* set back to 0 */