Apache Commons Math
Go to file
Phil Steitz 09a4643e10 Resolved multiple problems leading to inaccuracy and/or failure to compute Normal, ChiSquare and
Poisson probabilities, Erf and Gamma functions.

JIRA: MATH-282
JIRA: MATH-301

Summary of changes:

* BrentSolver has been changed to expose its configured absolute accuracy. This solver is used by
  the default inverse cum implementation in AbstractContinuousDistribution and the hard-coded setting
  (1E-6) was limiting accuracy in inverse cumulative probability estimates. AbstractContinuousDistribution
  was changed to allow distributions to set this value and NormalDistributionImpl was changed to set it to
  1E-9 by default and allow users to configure it via a constructor argument.

* AbstractContinuousDistribution and AbstractIntegerDistribution inverseCumulativeProbability methods
  have been modified to check for NaN values returned by cumulativeProbability and throw MathExceptions
  when this happens.

* The criteria for choosing between the Lanczos series and continued fraction expansion when computing
  regularized gamma functions has been changed to (x >= a + 1). When using the series approximation
  (regularizedGammaP), divergence to infinity is checked and when this happens, 1 is returned.

* When scaling continued fractions to (try to) avoid divergence to infinity, the larger of a and b is
  used as a scale factor and the attempt to scale is repeated up to 5 times, using successive powers
  of the scale factor.

* The maximum number of iterations used in estimating cumulative probabilities for PoissonDistributionImpl
  has been decreased from Integer.MAX_VALUE to 10000000 and made configurable.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@920558 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:57:32 +00:00
src Resolved multiple problems leading to inaccuracy and/or failure to compute Normal, ChiSquare and 2010-03-08 22:57:32 +00:00
LICENSE.txt Fixed typo and one missed s/used/translated 2009-07-29 22:49:23 +00:00
NOTICE.txt Put copyright notices in NOTICE.txt, clean up LICENSE.txt (mostly s/used/translated) 2009-07-29 22:35:15 +00:00
PROPOSAL.html Fixing the mailing list addresses 2007-07-29 20:14:22 +00:00
RELEASE-NOTES.txt fixed an error in RealMatrix javadoc 2009-08-01 19:01:59 +00:00
build.xml Synch. with test cases listed in pom.xml 2010-01-22 14:06:57 +00:00
checkstyle.xml tighten checkstyle rules: declaring multiple variables in one statement is now forbidden 2009-10-16 14:51:55 +00:00
doap_math.rdf Add AL header 2009-08-02 17:10:47 +00:00
findbugs-exclude-filter.xml fixed findbugs errors 2010-03-06 21:30:37 +00:00
license-header.txt Fixed copyright header (committing in parts as the full commit timed out) 2006-11-29 07:06:35 +00:00
pom.xml Upgrade to version 13 of commons-parent 2010-03-08 00:05:47 +00:00
test-jar.xml updated test-jar.xml according to new maven-compliant standard directory layout 2009-08-01 15:10:11 +00:00