Commit Graph

2708 Commits

Author SHA1 Message Date
Phil Steitz d393072e58 Fixed javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1043908 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 11:53:14 +00:00
Sebastian Bazley 5d2b33bd45 Update Clirr to 2.2.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1043411 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 13:37:46 +00:00
Gilles Sadowski 5a9079f2ec MATH-454
Pass the number of allowed function evaluations as a parameter to the
"optimize" methods.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1043078 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 15:01:37 +00:00
Gilles Sadowski 142d2c918a MATH-438
Removed deprecated methods.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1043075 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 14:58:08 +00:00
Gilles Sadowski 34c5d96df7 MATH-425
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1043066 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 14:40:16 +00:00
Gilles Sadowski d54330b9bc MATH-452
Made all static variables (accuracies) "private".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042596 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 11:56:26 +00:00
Sebastian Bazley 71d916f096 Javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042513 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 02:10:44 +00:00
Sebastian Bazley 47de37f805 Add missing @Deprecated annotation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042512 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 02:08:01 +00:00
Sebastian Bazley bef875a3ba Unused
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042511 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 02:07:10 +00:00
Gilles Sadowski 92938b610a MATH-451
Removed the "solve" methods lacking the "maxEval" parameter.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042502 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 00:53:59 +00:00
Sebastian Bazley e58d65df4e Remove unnecessary throws clauses from testxxx methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042428 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:37:55 +00:00
Sebastian Bazley c3ba9b395e Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042425 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:28:17 +00:00
Sebastian Bazley 7360926beb Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042424 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:27:21 +00:00
Sebastian Bazley fa4b8869dc Add missing @Deprecated annotation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042423 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:27:02 +00:00
Sebastian Bazley 52e8a34e72 StringBuffer => StringBuilder for local variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042422 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 19:25:21 +00:00
Gilles Sadowski 4d4aa195fe MATH-451
In solvers, the maximum number of evaluations is passed as a parameter to the
method "solve". The "setMaxEvaluations" accessor is removed.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042151 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 11:31:12 +00:00
Gilles Sadowski 848c37ee8b MATH-439
Removed deprecated class (superseded by "AbstractUnivariateRealSolver")..


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1041225 13f79535-47bb-0310-9956-ffa450edef68
2010-12-02 00:15:18 +00:00
Gilles Sadowski 25ac524b79 MATH-425
Remplaced deprecated code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1041216 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 23:58:43 +00:00
Gilles Sadowski 030fff9a45 Test added.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1041214 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 23:56:07 +00:00
Phil Steitz 3d3af2cfde Replaced deprecated MaximumIterationsExceededException by MaxCountExceededException. JIRA: MATH-438.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1040868 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 03:43:20 +00:00
Gilles Sadowski d951c7028d MATH-447
New "MathRuntimeException" base class.
"MathUserException" shares the same functionality (and thus is made a subclass
of the former).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1040818 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:57:14 +00:00
Phil Steitz 5fe9b36c45 Modified NormalDistributionImpl.cumulativeProbability to return 0 or 1,
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
2010-11-30 11:55:22 +00:00
Gilles Sadowski 0615bf8dc0 Added "vararg" parameter to allow "specific" meessage patterns to make use
of additional information.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1040003 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 01:43:12 +00:00
Phil Steitz c49cd8fa29 Fixed javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039982 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 23:52:45 +00:00
Phil Steitz da07b0aed6 Removed JDK 1.5-incompatible annotations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039507 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 18:48:44 +00:00
Gilles Sadowski f101eb4c2a MATH-430
Removed deprecated classes "ComposableFunction" and "BinaryFunction".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039465 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 17:02:26 +00:00
Gilles Sadowski 30fd555f27 MATH-430
Removed uses of deprecated "BinaryFunction" class.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039459 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 16:50:31 +00:00
Gilles Sadowski 215cebe8df MATH-430
Removed uses of deprecated "BinaryFunction" class.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039450 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 16:35:12 +00:00
Gilles Sadowski ae78e16c8b MATH-430
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
2010-11-26 15:24:28 +00:00
Gilles Sadowski 44eff7b3e8 MATH-430
Deprecated redundant methods in "RealVector" and "AbstractRealVector" (in
package "linear").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039315 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 11:27:49 +00:00
Phil Steitz 60f2c6d5f4 Updated changelog for JIRA: MATH-420 (should have been included in r1038873).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039139 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 18:49:47 +00:00
Gilles Sadowski b6e6100a5c Added reference to issue MATH-439.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1039087 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 16:30:07 +00:00
Gilles Sadowski b9559bfce9 MATH-439
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
2010-11-25 16:22:00 +00:00
Phil Steitz c32b8042d8 Added toString() override to StatistictalSummaryValues. JIRA: MATH-420.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1038873 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 23:35:13 +00:00
Gilles Sadowski 0b3c388aeb MATH-425
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
2010-11-24 00:42:12 +00:00
Gilles Sadowski b1676aecb4 MATH-430
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
2010-11-22 21:29:49 +00:00
Gilles Sadowski cbea7bad84 Removed unnecessary "try/catch" statements.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037468 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 14:20:24 +00:00
Gilles Sadowski b4129de756 Refined test (follow-up of MATH-441).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037372 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 02:36:14 +00:00
Luc Maisonobe 22d63af83d removed the ode.jacobians package
Jira: MATH-380

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037343 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 22:02:55 +00:00
Luc Maisonobe 3859aa17cf Added a normalization feature to transform samples so they have zero mean and unit standard deviation
Jira: MATH-426

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037333 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 21:31:44 +00:00
Luc Maisonobe 4f05aa7d18 removed FunctionEvaluationException, DerivativeException and MatrixVisitorException
these exception were  deprecated in 2.2 and a smooth transition path was set up to help users, now all user functions should use the new unchecked MathUserException

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1037328 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 21:01:50 +00:00
Luc Maisonobe f2d9bc8f93 added back some features from old exception scheme (accessors for patterns and arguments) to the new scheme
this should ease transition for existing user code

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035476 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 22:39:56 +00:00
Luc Maisonobe e5413fd483 added new constructors to MathUserException to provide more control to user
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035419 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 19:39:53 +00:00
Gilles Sadowski 0d52bf6394 MATH-441
Implemented proposed solution (rethrow last exception if no optimum were found).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035245 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 12:22:47 +00:00
Luc Maisonobe 65e95d0224 reverting change introduced in 1035003:
it was the javadoc that did not correspond to the intended behavior, not the code

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035072 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 21:32:08 +00:00
Luc Maisonobe 318d66e1b1 allow either specific or generic formats to be null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035009 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:32:48 +00:00
Luc Maisonobe 183ad3388d fixed message building so the behavior matches the existing javadoc:
general arguments are the ones remaining after the specific ones have been handled

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035003 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:06:11 +00:00
Luc Maisonobe 07cd6619e0 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1035002 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 15:04:51 +00:00
Gilles Sadowski 3f353cbde4 MATH-441
Removed occurences of "FunctionEvaluationException".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1034996 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 13:41:13 +00:00
Gilles Sadowski 77c4e2f0c6 MATH-440
Deprecation.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1034995 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 13:33:16 +00:00