Using Apache Commons Math, how do I get the median from a series of numbers?
The Commons Math User Guide says DescriptiveStatistics
supports median, yet the JavaDocs for DescriptiveStatistics makes no mention of it. It does mention geometric mean, is this the same thing as median?
I do see getPercentile(double)
. Is getPercentile(50)
the same as median?
DescriptiveStatistics.getPercentile
The 50th percentile is, by definition, the median.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With