commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MATH-675) MathUtils should have a static method which checks whether an array of doubles or Comparables is monotone
Date Wed, 16 Nov 2011 16:05:57 GMT

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

Gilles resolved MATH-675.
-------------------------

    Resolution: Fixed
    
> MathUtils should have a static method which checks whether an array of doubles or Comparables
is monotone 
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-675
>                 URL: https://issues.apache.org/jira/browse/MATH-675
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 3.0
>         Environment: Java
>            Reporter: greg sterijevski
>            Assignee: greg sterijevski
>            Priority: Minor
>              Labels: MathUtils
>             Fix For: 3.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The static method checkOrder in MathUtils is a useful piece of code which checks for
monotonically increasing or decreasing elements in an array. It would be useful to have a
similar method for Comparable. Furthermore, this new method would just return true or false.
Unlike the current checkOrder, no exception would be thrown if monotonicity did not exist.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message