[jira] Created: (MATH-334) RealVector (or ArrayRealVector): support min and max element

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (MATH-334) RealVector (or ArrayRealVector): support min and max element

Gary D. Gregory (Jira)
RealVector (or ArrayRealVector): support min and max element
------------------------------------------------------------

                 Key: MATH-334
                 URL: https://issues.apache.org/jira/browse/MATH-334
             Project: Commons Math
          Issue Type: Improvement
            Reporter: Mikkel Meyer Andersen
            Priority: Trivial


It would be great to be able to get the minimum and maximum element in a RealVector, or just in ArrayRealVector.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MATH-334) RealVector (or ArrayRealVector): support min and max element

Gary D. Gregory (Jira)

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

Mikkel Meyer Andersen commented on MATH-334:
--------------------------------------------

Of course Collections.min(v) exists, but it requires some casts/object creations to use that method in RealVector.

> RealVector (or ArrayRealVector): support min and max element
> ------------------------------------------------------------
>
>                 Key: MATH-334
>                 URL: https://issues.apache.org/jira/browse/MATH-334
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Mikkel Meyer Andersen
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> It would be great to be able to get the minimum and maximum element in a RealVector, or just in ArrayRealVector.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (MATH-334) RealVector (or ArrayRealVector): support min and max element

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe resolved MATH-334.
--------------------------------

    Resolution: Fixed

Fixed in subversion repository as of r904231.
Four methods have been added: getMinIndex, getMinValue, getMaxIndex and getMaxValue. Specila cases handled are zero length vectors and vectors with only NaNs. When both NaNs and regular values are present, min and max are computed on regular values only.

For compatibility reasons, these methods have been put in the topmost abstract class but not in the interface yet. It could be pushed to the interface when next major version will be released.


> RealVector (or ArrayRealVector): support min and max element
> ------------------------------------------------------------
>
>                 Key: MATH-334
>                 URL: https://issues.apache.org/jira/browse/MATH-334
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Mikkel Meyer Andersen
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> It would be great to be able to get the minimum and maximum element in a RealVector, or just in ArrayRealVector.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MATH-334) RealVector (or ArrayRealVector): support min and max element

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz updated MATH-334:
-----------------------------

    Fix Version/s: 2.1

> RealVector (or ArrayRealVector): support min and max element
> ------------------------------------------------------------
>
>                 Key: MATH-334
>                 URL: https://issues.apache.org/jira/browse/MATH-334
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Mikkel Meyer Andersen
>            Priority: Trivial
>             Fix For: 2.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> It would be great to be able to get the minimum and maximum element in a RealVector, or just in ArrayRealVector.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (MATH-334) RealVector (or ArrayRealVector): support min and max element

Gary D. Gregory (Jira)
In reply to this post by Gary D. Gregory (Jira)

     [ https://issues.apache.org/jira/browse/MATH-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz closed MATH-334.
----------------------------


> RealVector (or ArrayRealVector): support min and max element
> ------------------------------------------------------------
>
>                 Key: MATH-334
>                 URL: https://issues.apache.org/jira/browse/MATH-334
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Mikkel Meyer Andersen
>            Priority: Trivial
>             Fix For: 2.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> It would be great to be able to get the minimum and maximum element in a RealVector, or just in ArrayRealVector.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.