I am evaluating the use of Apache Math Commons Median for the querying of
large data sets in another Apache project called Apache Jena.

In my preliminary performance tests I was surprised to find that a simple
implementation of a median function with Arrays.sort() and a programmatic
selection of the median value yields much faster results
than Median().evaluate() or DescriptiveStatistics.getPercentile(50).

Since we only use this function for  Arrays of confirmed numbers is there a
particular benefit in using Apache Commons Math for this task or are we
better advised to use our own implementation here?

Thank You

Reply via email to