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
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
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
It currently has the maximum of a double array.
-Ajo.