2881 Commits

Author SHA1 Message Date
Luc Maisonobe
556576e645 Fixed initialization of multistep ODE integrators. Relying on the interpolation model of the starter integrator inside only one step was wrong. The model may have a too low order to compute high degrees derivatives in the Nordsieck vector. Now we use several steps and use only grid points instead of interpolated points.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097891 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 17:15:59 +00:00
Luc Maisonobe
1047f93f68 Added solve methods using double[][] to linear algebra decomposition solvers.
JIRA: MATH-564

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097730 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 08:48:38 +00:00
Gilles Sadowski
40daf0a0d5 Doc fix (description of release 2.2 was missing).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097502 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 15:23:34 +00:00
Gilles Sadowski
8af698213b Doc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097462 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 13:53:23 +00:00
Gilles Sadowski
dcfb76fa00 MATH-562
Interpolator adapter for periodic data.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097426 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 11:57:11 +00:00
Gilles Sadowski
2340a5e94c Added "@Retry" annotations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097418 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 11:23:06 +00:00
Gilles Sadowski
3dff269818 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097399 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 10:27:00 +00:00
Gilles Sadowski
54bdd4a006 Unused (except in Javadoc) "import".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097384 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 09:41:42 +00:00
Gilles Sadowski
f7b4430490 Replaced "Math" with "FastMath".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097094 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 12:26:48 +00:00
Gilles Sadowski
e39775be72 MATH-561
Map a value to the interval [O, period).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097088 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 11:54:16 +00:00
Luc Maisonobe
bb49301290 Added a "rectangular" Cholesky decomposition for positive semidefinite matrices.
JIRA: MATH-541

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096496 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 15:28:12 +00:00
Luc Maisonobe
6ac4c4d226 fixed copy-paste error in javadoc
(hope to get it right this time ...)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096477 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 13:38:01 +00:00
Luc Maisonobe
0b9bc8cc10 grammar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096476 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 13:34:59 +00:00
Luc Maisonobe
dad2f01046 expand javadoc to explain what Cholesky decomposition is
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096473 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 13:31:47 +00:00
Luc Maisonobe
9853e1ba0c Added setters allowing to change the step size control parameters of adaptive step size ODE integrators
Jira: MATH-563

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096443 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 09:45:49 +00:00
Luc Maisonobe
3bfed2129c Fixed misleading javadoc, the user supplied min and max step size are internally forced to positive and integration direction is handled later on. Asking for a positive step size was superfluous.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1096440 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 09:23:30 +00:00
Gilles Sadowski
00e957d447 Added (trivial) tests for NaNs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1092402 13f79535-47bb-0310-9956-ffa450edef68
2011-04-14 17:37:36 +00:00
Luc Maisonobe
2bc9b4b4d1 removed obsolete field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091526 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 18:07:42 +00:00
Gilles Sadowski
fc409e886d MATH-559
Removed "assert" statements.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091378 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 11:46:20 +00:00
Gilles Sadowski
47e0ef5d2e Trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091376 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 11:29:02 +00:00
Gilles Sadowski
4f1c54a445 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091358 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 10:04:32 +00:00
Gilles Sadowski
3fa068440f Simplified test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091346 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 09:41:02 +00:00
Luc Maisonobe
402279e151 make sure the test runs correctly even in a non-US environment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091153 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 18:02:52 +00:00
Luc Maisonobe
f69fd48e53 replaced remaining getEpsilon by using ulps in double comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1091143 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 17:43:40 +00:00
Luc Maisonobe
b278d97dce replaced the custom comparison method in SimplexSolver with the new MathUtils.compareTo(double, double, int) with maxUlps as the third parameter, as per Gilles advice.
Jira: MATH-434

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1090823 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 16:00:56 +00:00
Luc Maisonobe
13e5edb1b9 Added a compareTo method to MathUtils that uses a number of ulps as a tolerance error, and works well on all numbers, including normals, subnormals, signed zeroes, infinities and NaNs
Jira: MATH-557

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1090820 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 15:56:51 +00:00
Luc Maisonobe
133cbc2dbf Fixed two errors in simplex solver when entries are close together or
when variables are not restricted to non-negative.

Jira: MATH-434

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1090656 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 19:20:47 +00:00
Gilles Sadowski
a3c552e324 Wrong chaining of constructors made the interesting message (indicating the maximal
count) disappear.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1089891 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 14:33:08 +00:00
Phil Steitz
3c3c66c84f Changed to use, rathern than duplicate Realmatrix Frobenius norm.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088902 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 05:52:21 +00:00
Phil Steitz
d30be5671d Javadoc only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088900 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 05:33:17 +00:00
Phil Steitz
f88d38ff18 Removed trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088896 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 04:57:19 +00:00
Phil Steitz
71b826accd Changed CMAESOptimizer constructors to copy, rather than reference array arguments.
JIRA: MATH-556




git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088895 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 04:53:53 +00:00
Phil Steitz
2394a77405 Javadoc only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088813 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 22:40:31 +00:00
Luc Maisonobe
129bca8975 Improved robustness of k-means++ algorithm, by tracking changes in points assignments to clusters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088702 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 18:32:52 +00:00
Phil Steitz
b7d7b20ad0 Javadoc only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088647 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 14:43:25 +00:00
Phil Steitz
328513f3ad Changed MathUtils.round(double,int,int) to propagate rather than
wrap runtime exceptions.  Instead of MathRuntimeException, this method
now throws IllegalArgumentException or ArithmeticException under
the conditions specified in the javadoc.
JIRA: MATH-555




git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088473 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 04:51:37 +00:00
Luc Maisonobe
fbbb96eb17 Reduced cancellation errors in Vector3D.crossProduct
Jira: MATH-554

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088316 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 14:33:29 +00:00
Luc Maisonobe
ba0cf0e41b allow 3 retries for testNextHex which is expected to randomly fail with low probability
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1088315 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 14:33:00 +00:00
Gilles Sadowski
368f17d194 MATH-552
Fixed bug in "MultidimensionalCounter". Thanks to James Bence.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1087637 13f79535-47bb-0310-9956-ffa450edef68
2011-04-01 10:10:18 +00:00
Gilles Sadowski
3f53445d11 MATH-549
Reverted changes performed in revision 1086057.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1087630 13f79535-47bb-0310-9956-ffa450edef68
2011-04-01 09:24:53 +00:00
Gilles Sadowski
dfea5addf8 MATH-423
The "@Retry" annotation allows to select the number of retries of a
Junit test method (provided that the test class is itself annotated
with "@RunWith(RetryRunner.class).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1086539 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 10:28:37 +00:00
Gilles Sadowski
7f1d7b7e33 MATH-549
Method can be "static".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1086057 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 22:06:18 +00:00
Gilles Sadowski
e1852db1cf MATH-551
Modified "MathRuntimeException" class such that "SerializablePair" class has
become unnecessary.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1086045 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 21:51:31 +00:00
Mikkel Meyer Andersen
33959a8a4e Javadoc fixes (added missing parameter documentations, removed documentation for non-existing parameter, and newline cleanup)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085989 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 17:07:30 +00:00
Luc Maisonobe
87a8212704 fixed checkstyle warnings (no functional changes)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085981 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 16:32:01 +00:00
Luc Maisonobe
4676568449 updated findbugs exceptions after 3.0 API changes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085980 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 16:30:50 +00:00
Luc Maisonobe
ed1929b7c2 fixed javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085962 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 15:20:09 +00:00
Luc Maisonobe
c7421029c6 announced resolution of MATH-423
Jira: MATH-423

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085961 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 15:15:12 +00:00
Luc Maisonobe
525cddfb68 upgrated commons-parent pom to v20
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085958 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 15:11:29 +00:00
Luc Maisonobe
3c4a3dbd7c Implemented a retry policy for tests that may randomly fail.
Tests classes that may fail should be annotated with @RunWith(RetryRunner.class). This custom test runner attempts to re-run tests that fail, up to a maximum number of attempts defined as a constant in the test runner (currently set to 3 attempts max).

Jira: MATH-423

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085954 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 15:02:47 +00:00