1. The purpose of this post
This post would demo how to use apache commons math library to do common statistics job(min/max/mean/median/percentile/quantiles) with java.
2. Environments
3. The solution
3.1 Add apache commons math to your POM.xml
3.2 Write a test
3.3 Run the code
we would get this:
4. Conclusion
You can get more information by view the this document and this page.