[
https://issues.apache.org/jira/browse/MATH-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798346#comment-13798346
]
Thomas Neidhart commented on MATH-1042:
---------------------------------------
As Gilles wrote, just adding appropriate min(int[]) methods to StatUtils is not
enough.
All the embedded UnivariateStatistic objects take only double[] as input.
We could create wrapper methods that internally convert all int[] inputs to
double[] and then call the exiting methods which take a double[] as input, but
the same could be done by the caller as you still have the overhead of creating
a new array.
Otoh, we could add a method to MathArrays to convert an int[] to a double[] to
at least make this easier for users.
> StatUtils supports int[]
> ------------------------
>
> Key: MATH-1042
> URL: https://issues.apache.org/jira/browse/MATH-1042
> Project: Commons Math
> Issue Type: Wish
> Reporter: Karl Yang
> Priority: Minor
>
> Sometimes we want to find the min value, max value, percentile in a int[],
> but the StatUtils only support double[], we need to convert int[] to double[].
--
This message was sent by Atlassian JIRA
(v6.1#6144)