From: bdemsky Date: Thu, 15 Oct 2009 23:59:00 +0000 (+0000) Subject: big problem X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8e9f6898ba6936d3b14efa80f7e1f1a973502e48;p=IRC.git big problem --- diff --git a/Robust/src/Benchmarks/SingleTM/KMeans/KMeans.java b/Robust/src/Benchmarks/SingleTM/KMeans/KMeans.java index 7462512c..398850a8 100644 --- a/Robust/src/Benchmarks/SingleTM/KMeans/KMeans.java +++ b/Robust/src/Benchmarks/SingleTM/KMeans/KMeans.java @@ -142,7 +142,7 @@ public class KMeans extends Thread { isBinaryFile = 0; use_zscore_transform = 1; threshold = (float) 0.001; - best_nclusters = 0; + best_nclusters=0; } public KMeans(int threadid, GlobalArgs g_args) { @@ -306,7 +306,7 @@ public class KMeans extends Thread { } } else if(arg.equals("-t")) { if(i < args.length) { - km.threshold = new Integer(args[i++]).intValue(); + km.threshold = (float) Double.parseDouble(args[i++]); } } else if(arg.equals("-i")) { if(i < args.length) {