Created unchecked exception "MathParseException".
Removed occurrence of old "MathRuntimeException".
Modified unit tests to not use the base class "parseObject" method because its
signature contains a checked exception).
Upgraded tests to Junit4 (MATH-423).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1052341 13f79535-47bb-0310-9956-ffa450edef68
Made all new exception classes inherit from "MathRuntimeException".
Changed accordingly all tests that relied on catching the standard
Java exception (e.g. "MathIllegalArgumentEception" is not a subclass
of "IllegalArgumentEception" anymore).
Replaced occurrences of the old "MathRuntimeException" by the
appropriate exception from the "exception" package (MATH-459).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1044186 13f79535-47bb-0310-9956-ffa450edef68
respectively for values more than 40 standard deviations from the mean.
For these values, the actual probability is indistinguishable from 0 or 1
as a double. Top coding improves performance for extreme values and prevents
convergence exceptions.
JIRA: MATH-414
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1040471 13f79535-47bb-0310-9956-ffa450edef68
Removed redundant "mapXxx" methods.
Upgraded tests to Junit4 (MATH-423).
Some test used "assertEquals" without a tolerance (strict equality between
floating point numbers); this failed with Junit4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039411 13f79535-47bb-0310-9956-ffa450edef68
Refactored the "solvers" package. Implementations refer to number of
evaluation of the objective function (instead of the number of iterations).
New interfaces and base classes.
"NewtonSolver" fits in the design without resorting to a cast.
Created class "MullerSolver2" to contain the code of the method named "solve2"
in class "MullerSolver".
Removed "UnivariateRealSolverFactory" and "UnivariateRealSolverFactoryImpl".
Default solver in "UnivariateRealSolverUtils" is explicitely instantiated.
"AbstractContinuousDistribution": Type of exception thrown changed in
"UnivariateRealSolverUtils".
Factored out duplicate code (in "GaussNewtonOptimizerTest" and
"LevenbergMarquardtOptimizerTest"): class "Circle" is now called
"CircleVectorial". Also factored out the "Circle" class from
"NonLinearConjugateGradientOptimizerTest": class is named "CircleScalar".
Created "SecantSolverTest", moving there all the tests for the class
"SecantSolver" that were located in class "BrentSolverTest".
Created new interface and base class for polynomial functions solvers
("LaguerreSolver") so that the function type is now checked at compile time.
Removed deprecated exceptions (MATH-441).
Javadoc clean-up.
Lowered tolerance values in some unit tests.
Tests upgraded to Junit 4 (MATH-423).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039083 13f79535-47bb-0310-9956-ffa450edef68
Removed redundant exception "throws" clauses.
Javadoc cleanup.
Throwing "NoDataException" instead of "ZeroException" when row or column
data is missing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1038403 13f79535-47bb-0310-9956-ffa450edef68
New package "function" contains univariate and bivariate function objects.
"FunctionUtils" contains methods to compose and combine function objects.
Together they replace "ComposableFunction" and "BinaryFunction" which are
now deprecated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037896 13f79535-47bb-0310-9956-ffa450edef68