Commit Graph

5384 Commits

Author SHA1 Message Date
Luc Maisonobe 76a5cd998b Checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554035 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 15:17:45 +00:00
Gilles Sadowski 8e23b250a4 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1553855 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 15:55:24 +00:00
Phil Steitz 1220f2f7ba Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1553598 13f79535-47bb-0310-9956-ffa450edef68
2013-12-26 22:18:02 +00:00
Thomas Neidhart fa027a4685 [MATH-1082] Improve cutOff mechanism in SimplexSolver, adapt unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1552792 13f79535-47bb-0310-9956-ffa450edef68
2013-12-20 19:33:03 +00:00
Thomas Neidhart 881a4ee8db [MATH-1079] Further improvements to SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1552046 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 17:41:26 +00:00
Thomas Neidhart af858a6ca2 [MATH-1079] Improve performance of SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551735 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 22:11:45 +00:00
Thomas Neidhart 68fa81123a Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551360 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 21:13:59 +00:00
Thomas Neidhart b285f17023 [MATH-1080] LinearConstraintSet returns now the LinearConstraints in the same order as they have been added.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551355 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 21:05:01 +00:00
Thomas Neidhart f7222ca6c3 Rename enum to uppercase, make test deterministic.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551058 13f79535-47bb-0310-9956-ffa450edef68
2013-12-15 21:15:21 +00:00
Thomas Neidhart 05aae985d9 Small improvement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551014 13f79535-47bb-0310-9956-ffa450edef68
2013-12-15 10:56:49 +00:00
Thomas Neidhart 721730b00b Formatting, use List instead of ArrayList.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1550977 13f79535-47bb-0310-9956-ffa450edef68
2013-12-14 22:07:02 +00:00
Thomas Neidhart f3a785108f [MATH-842] Added support for different pivot selection rules to SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1550975 13f79535-47bb-0310-9956-ffa450edef68
2013-12-14 21:50:33 +00:00
Thomas Neidhart 7ebbaea90e Remove some debug code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549985 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 22:13:14 +00:00
Thomas Neidhart ab0a2f761f Add some documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549984 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 22:10:43 +00:00
Thomas Neidhart e9ea52189a Improve ImageEvolutionExample, add test images.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549977 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 21:40:32 +00:00
Thomas Neidhart 1cdc902f3d Add ImageEvolution example for genetics package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549696 13f79535-47bb-0310-9956-ffa450edef68
2013-12-09 22:34:28 +00:00
Thomas Neidhart 7573e9eec0 Small performance improvement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549094 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:23:44 +00:00
Thomas Neidhart d944333d01 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549093 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:23:09 +00:00
Thomas Neidhart a34be55b9b Add dependency to commons-lang3 for userguide examples.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549092 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:20:58 +00:00
Thomas Neidhart c823ac5673 Add HelloWorld example for genetics package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549090 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:18:13 +00:00
Thomas Neidhart e42da5d9d2 [MATH-1068] Changed integer calculations with potential overflows to long.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1548907 13f79535-47bb-0310-9956-ffa450edef68
2013-12-07 13:08:06 +00:00
Thomas Neidhart 8e5867eda8 [MATH-1070] Fix Precision.round(float, int, int) for RoundingMode ROUND_UP. Thanks to Oleksandr Muliarevych.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1547649 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 23:50:14 +00:00
Thomas Neidhart ba3c2201c6 [MATH-1059] Use FastMath instead of Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1547633 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 23:03:06 +00:00
Thomas Neidhart b12610d35e [MATH-1068] Avoid overflow in Kendalls correlation for large input arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1546840 13f79535-47bb-0310-9956-ffa450edef68
2013-12-01 19:17:22 +00:00
Gilles Sadowski aff82362cf MATH-1067
Avoid infinite recursion. Thanks to Florian Erhard.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1546350 13f79535-47bb-0310-9956-ffa450edef68
2013-11-28 11:41:12 +00:00
Gilles Sadowski c1ba07bb65 MATH-1014
"PolynomialCurveFitter" as replacement of "PolynomialFitter". Some tests have
been obsoleted by the refactoring (which hides the optimizer and thus avoids
some potential misuses).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1543906 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 18:57:53 +00:00
Thomas Neidhart 54a7796ff2 [MATH-970] Added SolutionCallback to SimplexSolver to retrieve the best solution found.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1543169 13f79535-47bb-0310-9956-ffa450edef68
2013-11-18 21:24:32 +00:00
Thomas Neidhart 3a45bc5b6d [MATH-1031] Added new ClusterEvaluation base class and refactored code in MultiKMeansPlusPlusClusterer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1542545 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 18:48:48 +00:00
Thomas Neidhart 65646ba8bd Fix typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1542541 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 17:48:36 +00:00
Phil Steitz 1e1365c7b4 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541354 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 02:04:32 +00:00
Phil Steitz 763b37de5d Dropped some ancient history.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541350 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 01:34:10 +00:00
Phil Steitz 04078798c0 Miscellaneous updates / fixes
* Drop mention of Maven 2 (was distinguishing from Maven 1, which no longer really exists)
* Remind people to make diffs from top level project directory
* Don't tell people to make Wiki pages (not open access any more)
* Drop (now false) statement that all exceptions inherit from MRE



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541347 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 01:24:17 +00:00
Phil Steitz 5df86e5cb2 Removed reference to deprecated class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540802 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 18:51:38 +00:00
Phil Steitz 7cff45f1d7 Refer to MathIllegalArgumentException; formatting; remove false commitment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540751 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 15:20:28 +00:00
Phil Steitz b3b5e6c869 Fixed some errors; changed to use standard terminology.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540566 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 22:19:10 +00:00
Phil Steitz 1b4f1ef040 Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540561 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 22:04:58 +00:00
Phil Steitz 909105bf55 Fixed spelling errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540531 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 19:59:15 +00:00
Phil Steitz 064634efda Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540514 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:55:52 +00:00
Phil Steitz 0801455213 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540513 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:54:32 +00:00
Phil Steitz 78504bde01 Changed to use InsufficientDataException when the model does not contain sufficient data for the number of regerssors; fixed error in precondition statement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540502 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:03:41 +00:00
Phil Steitz fdd505d985 Added InsufficientDataException. JIRA: MATH-1061
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540498 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 17:45:38 +00:00
Phil Steitz 5d61fcddd4 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540418 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 22:34:10 +00:00
Phil Steitz b72f31c6bd Clarified contracts re NaNs, IAEs and when constructor arguments are necessary.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540395 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 21:32:06 +00:00
Phil Steitz eca87abcee Added test to verify that zero variance in either array leads to NaN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540392 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 20:31:52 +00:00
Phil Steitz d252a811a2 Fixed unintended integer division error in PoissonDistribution sampling method.
JIRA: MATH-1056
Reported and patched by Sean Owen.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540217 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 23:27:49 +00:00
Thomas Neidhart 5ee76f095e [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540167 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 20:00:08 +00:00
Thomas Neidhart f2a833757b [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540166 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:56:28 +00:00
Thomas Neidhart e4c6bb0b27 [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540165 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:53:58 +00:00
Thomas Neidhart cf1a5c59dd [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540155 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:08:22 +00:00
Thomas Neidhart c5b943fe26 Fix failing unit tests for BOBYQAOptimizer when executed with a 1.5 jvm due to slight differences in accuracy of the certain Math functions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540075 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 15:19:46 +00:00