You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "David Hall (JIRA)" <ji...@apache.org> on 2009/08/07 22:01:14 UTC

[jira] Created: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Add Vector.norm to compute k-norms of vectors
---------------------------------------------

                 Key: MAHOUT-161
                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
             Project: Mahout
          Issue Type: Improvement
          Components: Matrix
    Affects Versions: 0.2
            Reporter: David Hall
             Fix For: 0.2
         Attachments: MAHOUT-161

This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).

AbstractVector.normalize now calls norm.

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


[jira] Assigned: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll reassigned MAHOUT-161:
--------------------------------------

    Assignee: Grant Ingersoll

> Add Vector.norm to compute k-norms of vectors
> ---------------------------------------------
>
>                 Key: MAHOUT-161
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Matrix
>    Affects Versions: 0.2
>            Reporter: David Hall
>            Assignee: Grant Ingersoll
>             Fix For: 0.2
>
>         Attachments: MAHOUT-161
>
>
> This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).
> AbstractVector.normalize now calls norm.

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


[jira] Commented: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Posted by "David Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740821#action_12740821 ] 

David Hall commented on MAHOUT-161:
-----------------------------------

normalize(power) returns this.divide(norm(power)).

norm(p) == ||v||_p,

normalize(p) == v / ||v||_p

norm(p) is useful to check if a vector is sufficiently close to 0, e.g. if the difference between two phases of an optimization is close enough to convergence.

> Add Vector.norm to compute k-norms of vectors
> ---------------------------------------------
>
>                 Key: MAHOUT-161
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Matrix
>    Affects Versions: 0.2
>            Reporter: David Hall
>             Fix For: 0.2
>
>         Attachments: MAHOUT-161
>
>
> This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).
> AbstractVector.normalize now calls norm.

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


[jira] Updated: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Posted by "David Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Hall updated MAHOUT-161:
------------------------------

    Attachment: MAHOUT-161

> Add Vector.norm to compute k-norms of vectors
> ---------------------------------------------
>
>                 Key: MAHOUT-161
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Matrix
>    Affects Versions: 0.2
>            Reporter: David Hall
>             Fix For: 0.2
>
>         Attachments: MAHOUT-161
>
>
> This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).
> AbstractVector.normalize now calls norm.

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


[jira] Resolved: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll resolved MAHOUT-161.
------------------------------------

    Resolution: Fixed

Committed revision 802515.

> Add Vector.norm to compute k-norms of vectors
> ---------------------------------------------
>
>                 Key: MAHOUT-161
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Matrix
>    Affects Versions: 0.2
>            Reporter: David Hall
>            Assignee: Grant Ingersoll
>             Fix For: 0.2
>
>         Attachments: MAHOUT-161
>
>
> This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).
> AbstractVector.normalize now calls norm.

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


[jira] Commented: (MAHOUT-161) Add Vector.norm to compute k-norms of vectors

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740797#action_12740797 ] 

Grant Ingersoll commented on MAHOUT-161:
----------------------------------------

How is this different from normalize(power) that is already on Vector?

> Add Vector.norm to compute k-norms of vectors
> ---------------------------------------------
>
>                 Key: MAHOUT-161
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-161
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Matrix
>    Affects Versions: 0.2
>            Reporter: David Hall
>             Fix For: 0.2
>
>         Attachments: MAHOUT-161
>
>
> This patch adds Vector.norm(double power) to Vector (and an implementation to AbstractVector).
> AbstractVector.normalize now calls norm.

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