Re: [Math] Could StatUtils use a method to find the index of the maximum value.

2013-09-21 Thread Ajo Fod
Yes, MathArrays is probably better than StatUtils. I've historically needed it for things like processing the biggest/smallest few elements of an array till some cost metric is satisfied or finding the N'th element. Technically making a TreeList from the Double elements is a close substitute, and

Re: [Math] Could StatUtils use a method to find the index of the maximum value.

2013-09-21 Thread Phil Steitz
On 9/19/13 6:14 PM, Ajo Fod wrote: > It currently has the maximum of a double array. > > -Ajo. > If we were to add something like this it would likely fit better in util.MathArrays. Where is it needed? Phil - To unsubscribe, e-m

Re: [Math] Could StatUtils use a method to find the index of the maximum value.

2013-09-21 Thread Ajo Fod
Here is a bit of code that ranks elements of a double array: public class Rank { public static enum Dir { Ascending(1), Descending(-1); int side; Dir(int i) { side = i; } } /** * Rank elements of an array. * * @para

[Math] Could StatUtils use a method to find the index of the maximum value.

2013-09-19 Thread Ajo Fod
It currently has the maximum of a double array. -Ajo.