On Thu, 25 Jul 2013 08:50:38 -0400, Konstantin Berlin wrote:
Depending on the size of the array, due to caching, it might be faster to
do a single pass and compute min and max at same time.

A new "MinMax" statistics might be created in "o.a.c.m.stat.descriptive.rank". Then such a field could be added to "o.a.c.m.stat.descriptive.DescriptiveStatistics".

Is there a function that would compute min and max on an comparable
collection?

http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#max(java.util.Collection)


Gilles


On Tue, Jul 23, 2013 at 1:25 PM, Phil Steitz <phil.ste...@gmail.com> wrote:

On 7/23/13 10:17 AM, Ajo Fod wrote:
> You mean find the difference between StatUtils.min() and max() on
elements
> of an array?

Duh, that would do it :)

Thanks!

Phil
>
>
>
>
>
>
> On Tue, Jul 23, 2013 at 8:57 AM, Phil Steitz <phil.ste...@gmail.com>
wrote:
>
>> I need a function that computes the maximum difference between
>> elements of an array. Any objections to adding this to MathArrays?
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to