Dan Filimon created MAHOUT-1189:
-----------------------------------

             Summary: 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


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