Use of "org.apache.commons.math3" example

Could you post a full example of how to use the org.apache.commons.math3" tools found at Overview (Apache Commons Math 3.6.1 API)?

I see some fragmented examples in other post, but I can not seem to get them to work.
Would you be able to post something illustrating the code all the way from importing the modules to returning a result?

I am specifically trying to use the binomial distribution function.

The Java equivalents to the Scipy tools “scipy.stats.binom.pmf” and “scipy.stats.binom.cdf” are what I am looking for.


Unfortunately there aren’t a lot of good examples out there for Apache Commons Math – the ones we’ve published so far have been strictly trial and error, pieced together from a lot of example fragments found in searches.