Re: [math] Method min, max, percentile in StatUtils support int[], long[], etc

2013-10-17 Thread Karl Yang
Define statistics such as percentiles, mean etc that expect integer arrays as arguments is what I wish, but the return type is decided by the method, for method min(int[]) and max(int[]), the return type must be integer; for method mean, the return type may be double. If not I need to convert int[]

Re: [math] Method min, max, percentile in StatUtils support int[], long[], etc

2013-10-17 Thread Phil Steitz
On 10/16/13 6:36 PM, 杨栓 wrote: > Hi, > > I always need to compute min value, max value, percentile values of > millions data, these data may are int, long or double. But class StatUtils > only > supports double[], I need to convert int[], long[] to double[]. Shall we > add a feature that StatUtils

Re: [math] Method min, max, percentile in StatUtils support int[], long[], etc

2013-10-16 Thread Anshul Zunke
+1 On Thu, Oct 17, 2013 at 7:06 AM, 杨栓 wrote: > Hi, > > I always need to compute min value, max value, percentile values of > millions data, these data may are int, long or double. But class StatUtils > only > supports double[], I need to convert int[], long[] to double[]. Shall we > add a feat

[math] Method min, max, percentile in StatUtils support int[], long[], etc

2013-10-16 Thread 杨栓
Hi, I always need to compute min value, max value, percentile values of millions data, these data may are int, long or double. But class StatUtils only supports double[], I need to convert int[], long[] to double[]. Shall we add a feature that StatUtils supports any other numeric type?