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 <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 > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >