mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeast...@apache.org
Subject svn commit: r1037307 - /mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java
Date Sat, 20 Nov 2010 19:19:24 GMT
Author: jeastman
Date: Sat Nov 20 19:19:23 2010
New Revision: 1037307

URL: http://svn.apache.org/viewvc?rev=1037307&view=rev
Log:
Removing code that sets all elements of radius vector to MIN_NORMAL since that causes OMEs

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java?rev=1037307&r1=1037306&r2=1037307&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/clustering/AbstractCluster.java Sat
Nov 20 19:19:23 2010
@@ -180,9 +180,7 @@ public abstract class AbstractCluster im
     // compute the component stds
     if (s0 > 1) {
       radius = s2.times(s0).minus(s1.times(s1)).assign(new SquareRootFunction()).divide(s0);
-    } else {
-      radius.assign(Double.MIN_NORMAL);
-    }
+    } 
     s0 = 0;
     s1 = null;
     s2 = null;



Mime
View raw message