You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2008/08/08 07:09:44 UTC

[jira] Created: (HAMA-19) Remove vector-norms enum to interface from implementations.

Remove vector-norms enum to interface from implementations.
-----------------------------------------------------------

                 Key: HAMA-19
                 URL: https://issues.apache.org/jira/browse/HAMA-19
             Project: Hama
          Issue Type: Improvement
            Reporter: Edward J. Yoon
            Assignee: Edward J. Yoon


Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620848#action_12620848 ] 

Edward J. Yoon commented on HAMA-19:
------------------------------------

test:
    [junit] Running org.apache.hama.TestMatrix
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 39.061 sec
    [junit] Running org.apache.hama.TestRandomVariable
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.012 sec
    [junit] Running org.apache.hama.TestVector
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 39.15 sec
    [junit] Running org.apache.hama.mapred.TestMatrixMapReduce
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 60.289 sec

BUILD SUCCESSFUL
Total time: 2 minutes 23 seconds

Local test passed. Resolved.


> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>          Components: interface
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>         Attachments: HAMA-19.patch
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-19:
-------------------------------

    Fix Version/s: 0.1.0

> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-19.
--------------------------------

    Resolution: Fixed

> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>          Components: interface
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>         Attachments: HAMA-19.patch
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620846#action_12620846 ] 

Edward J. Yoon commented on HAMA-19:
------------------------------------

We should implement  AbstractVector, Vector to DenseVector conversion, norm2_robust() method, infinity norm.

> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>          Components: interface
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>         Attachments: HAMA-19.patch
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-19:
-------------------------------

    Component/s: interface

> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>          Components: interface
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HAMA-19) Remove vector-norms enum to interface from implementations.

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon updated HAMA-19:
-------------------------------

    Attachment: HAMA-19.patch

Interface : 

  /**
   * Supported vector-norms.
   */
  enum Norm {

    /** Sum of the absolute values of the entries */
    One,

    /** The root of sum of squares */
    Two,

    /**
     * As the 2 norm may overflow, an overflow resistant version is also
     * available. Note that it may be slower.
     */
    TwoRobust,

    /** Largest entry in absolute value */
    Infinity
  }

Implements : 

  public double norm(Norm type) {
    if (type == Norm.One)
      return getL1Norm();
    else if (type == Norm.Two)
      return getL2Norm();
    else if (type == Norm.TwoRobust)
      return norm2_robust();
    else
      return normInf();
  }

  public double getL1Norm() {
    double sum = 0.0;
    for (int i = 0; i < m_vals.length; i++) {
      sum += m_vals[i];
    }
    return sum;
  }
....

> Remove vector-norms enum to interface from implementations.
> -----------------------------------------------------------
>
>                 Key: HAMA-19
>                 URL: https://issues.apache.org/jira/browse/HAMA-19
>             Project: Hama
>          Issue Type: Improvement
>          Components: interface
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>         Attachments: HAMA-19.patch
>
>
> Add norms (e.g. one, tow, twoRubust, infinity) to vector interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.