incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r683867 - /incubator/hama/trunk/src/java/org/apache/hama/Vector.java
Date Fri, 08 Aug 2008 06:16:10 GMT
Author: edwardyoon
Date: Thu Aug  7 23:16:09 2008
New Revision: 683867

URL: http://svn.apache.org/viewvc?rev=683867&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/Vector.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/Vector.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/Vector.java?rev=683867&r1=683866&r2=683867&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/Vector.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/Vector.java Thu Aug  7 23:16:09 2008
@@ -77,7 +77,7 @@
       d_i = this.getValueAt(dim);
       cosine += q_i * d_i;
     }
-    return cosine / (this.getL2Norm() * v.getL2Norm());
+    return cosine / (this.getNorm2() * v.getNorm2());
   }
 
   public double get(int index) {



Mime
View raw message