[ 
https://issues.apache.org/jira/browse/MAHOUT-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Filimon resolved MAHOUT-1189.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8

Committed revision 1478733.
                
> CosineDistanceMeasure doesn't return 0 for two 0 vectors
> --------------------------------------------------------
>
>                 Key: MAHOUT-1189
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1189
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Dan Filimon
>            Priority: Minor
>             Fix For: 0.8
>
>
> CosineDistanceMeasure for two equal vectors should always return 0 like for 
> any other distance measure, however it returns 1.
> This patch fixes this issue.
> Also, note that it's not necessarily obvious what the return value should be 
> since the cosine of two 0-length vectors isn't defined.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to