[
https://issues.apache.org/jira/browse/MAHOUT-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13597500#comment-13597500
]
Dan Filimon commented on MAHOUT-1155:
-------------------------------------
You're right!
There's an issue casting so I made the clone() return a new Centroid(this).
Now I wonder whether a Centroid should clone the WeightedVector when being
instantiated. This seems somewhat counter intuitive.
> Make MatrixSlice a Vector and fix Centroid cloning
> --------------------------------------------------
>
> Key: MAHOUT-1155
> URL: https://issues.apache.org/jira/browse/MAHOUT-1155
> Project: Mahout
> Issue Type: Improvement
> Components: Math
> Affects Versions: 0.8
> Reporter: Dan Filimon
> Priority: Minor
> Attachments: MAHOUT_1155.patch, MAHOUT_1155.patch
>
>
> There are two changes in this issue:
> - making MatrixSlice a Vector by extending DelegatingVector;
> - making a few changes to the vector cloning code so that when cloning a
> Centroid, the result is also a Centroid.
> This is part of the changes in
> https://issues.apache.org/jira/browse/MAHOUT-1154
--
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