You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dan Filimon (JIRA)" <ji...@apache.org> on 2013/04/09 17:08:19 UTC

[jira] [Created] (MAHOUT-1189) CosineDistanceMeasure doesn't return 0 for two 0 vectors

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