You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mikkel Meyer Andersen (JIRA)" <ji...@apache.org> on 2010/01/26 15:06:34 UTC

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

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.


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

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Mikkel Meyer Andersen (JIRA)" <ji...@apache.org>.
    [ 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.