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 supports any other numeric type?
>
It would be trivial to just add overloaded versions of the methods
that do the conversion for you. Is that what you mean? They would
still return doubles as results. Is that what you mean? Or do you
mean defining statistics such as percentiles, mean, etc. that expect
integer arrays as arguments and return results coerced to integer
values? If the latter, what exactly is the use case - i.e., what is
the practical need for this?

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to