You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2013/05/24 15:22:20 UTC

[jira] [Commented] (MATH-980) Let the VectorXD classes in the geometry package implement Clusterable

    [ https://issues.apache.org/jira/browse/MATH-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13666294#comment-13666294 ] 

Gilles commented on MATH-980:
-----------------------------

bq. It would be quite convenient if the Vector1D, Vector2D and Vector3D classes could be used directly by the clustering algorithms. [...]

Practical examples?

                
> Let the VectorXD classes in the geometry package implement Clusterable
> ----------------------------------------------------------------------
>
>                 Key: MATH-980
>                 URL: https://issues.apache.org/jira/browse/MATH-980
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Thomas Neidhart
>            Priority: Minor
>
> It would be quite convenient if the Vector1D, Vector2D and Vector3D classes could be used directly by the clustering algorithms. The updated Clusterable interface now only requires one method:
>  * double[] getPoint()
> which is already supported by these classes: toArray()
> We could let them implement the Clusterable interface by simply delegating the call to getPoint() to toArray().

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