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

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

Thomas Neidhart created MATH-980:
------------------------------------

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