Re: [math] another add to MathArrays

2013-07-25 Thread Ajo Fod
Calling it range is another option sense .. min/max reminds me of optimization. -Ajo On Thu, Jul 25, 2013 at 6:18 AM, Gilles wrote: > 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 a

Re: [math] another add to MathArrays

2013-07-25 Thread Gilles
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

Re: [math] another add to MathArrays

2013-07-25 Thread Konstantin Berlin
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. Is there a function that would compute min and max on an comparable collection? On Tue, Jul 23, 2013 at 1:25 PM, Phil Steitz wrote: > On 7/23/13 10:17 AM, Ajo Fod wr

Re: [math] another add to MathArrays

2013-07-23 Thread Phil Steitz
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 wrote: > >> I need a function that computes the maximum difference bet

Re: [math] another add to MathArrays

2013-07-23 Thread Ajo Fod
You mean find the difference between StatUtils.min() and max() on elements of an array? On Tue, Jul 23, 2013 at 8:57 AM, Phil Steitz wrote: > I need a function that computes the maximum difference between > elements of an array. Any objections to adding this to MathArrays? > >

[math] another add to MathArrays

2013-07-23 Thread Phil Steitz
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