commit | 9c794a15f75aafbe9d2ab4b62b7e43e1c32e7501 | [log] [tgz] |
---|---|---|
author | Gilles Sadowski <gilles@harfang.homelinux.org> | Sun Jan 21 14:41:03 2018 +0100 |
committer | Gilles Sadowski <gilles@harfang.homelinux.org> | Sun Jan 21 14:41:03 2018 +0100 |
tree | db1d924357915a49e8e6162c68b9d48b4eda3180 | |
parent | 585178f823ac8f0df41a0f727a8301b21084c3f1 [diff] |
STATISTICS-2: Migrate "o.a.c.math4.distribution" from Commons Math. "IntegerDistribution" was renamed "DiscreteDistribution". "RealDistribution" was renamed "ContinuousDistribution". All exceptions are instances of "DistributionException" (package-private). Solver code (used by method "inverseCumulativeProbability") is a private static inner class in "AbstractContinuousDistribution". Tolerances are hard-coded. [Constructors that specified a tolerance were removed.] Calls to "FastMath" were replaced by calls to JDK "Math". This has led to two unit tests failing in "GammaDistributionTest" for which the tolerance had to be slightly increased. [The main source indicates which calls to "Math" methods are responsible for the failures at the original tolerance.]