You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2008/08/08 08:12:20 UTC

svn commit: r683866 - /incubator/hama/trunk/src/java/org/apache/hama/Vector.java

Author: edwardyoon
Date: Thu Aug  7 23:12:19 2008
New Revision: 683866

URL: http://svn.apache.org/viewvc?rev=683866&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=683866&r1=683865&r2=683866&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:12:19 2008
@@ -87,11 +87,11 @@
 
   public double norm(Norm type) {
     if (type == Norm.One)
-      return getL1Norm();
+      return getNorm1();
     else if (type == Norm.Two)
-      return getL2Norm();
+      return getNorm2();
     else if (type == Norm.TwoRobust)
-      return getL2NormRobust();
+      return getNorm2Robust();
     else
       return getNormInf();
   }
@@ -106,7 +106,7 @@
     return null;
   }
 
-  public double getL1Norm() {
+  public double getNorm1() {
     double sum = 0.0;
     for (int i = 0; i < m_vals.length; i++) {
       sum += m_vals[i];
@@ -114,7 +114,7 @@
     return sum;
   }
 
-  public double getL2Norm() {
+  public double getNorm2() {
     double square_sum = 0.0;
     for (int i = 0; i < m_vals.length; i++) {
       square_sum += (m_vals[i] * m_vals[i]);
@@ -122,7 +122,7 @@
     return Math.sqrt(square_sum);
   }
 
-  public double getL2NormRobust() {
+  public double getNorm2Robust() {
     // TODO Auto-generated method stub
     return 0;
   }