You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2011/07/17 06:26:00 UTC

[jira] [Issue Comment Edited] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

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

Matt Benson edited comment on LANG-723 at 7/17/11 4:25 AM:
-----------------------------------------------------------

Committed revision 1147522.

Implemented median with the decision that an even number of values would result in an approximation by simply returning the lower of the two middle values.  Also included:
{{<T> /* not required to be comparable */ T median(Comparator<T>, T...)}}


      was (Author: mbenson):
    Committed revision 1147522.

Implemented median with the decision that an even number of values would result in an approximation by simply returning the lower of the two middle values.  Also included {{<T> /* not required to be comparable */ T median(Comparator<T>, T...)}}

  
> Add mode and median Comparable... methods to ObjectUtils
> --------------------------------------------------------
>
>                 Key: LANG-723
>                 URL: https://issues.apache.org/jira/browse/LANG-723
>             Project: Commons Lang
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Matt Benson
>            Priority: Minor
>             Fix For: 3.x
>
>
> ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira