[ 
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.

Reply via email to