3310 Commits

Author SHA1 Message Date
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
Luc Maisonobe
1df2b780a2 upgraded Junit version to 4.8.2.
This brings maven build up to date with respect to ant build, which already uses 4.8.2.
It will allow implementing a retry policy for the few tests that can randomly fail, using API introduced in Junit 4.5.

JIRA: MATH-423

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1085952 13f79535-47bb-0310-9956-ffa450edef68
2011-03-27 14:58:59 +00:00
Luc Maisonobe
3baecf4a66 removed unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084735 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 20:57:29 +00:00
Luc Maisonobe
433cd1694e removed deprecated code
JIRA: MATH-438

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084700 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 19:53:34 +00:00
Luc Maisonobe
a22db05f92 Removed the ConvergingAlgorithm interface and ConvergingAlgorithmImpl class
JIRA: MATH-500

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084690 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 19:36:04 +00:00
Luc Maisonobe
c0b1f96700 removed unused method in private internal class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084600 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:28:19 +00:00
Luc Maisonobe
2cc5012409 removed unneeded @SuppressWarning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084598 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:23:14 +00:00
Luc Maisonobe
22421b80fd added missing serialVersionUID
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084597 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:22:19 +00:00
Luc Maisonobe
ff21663c8e fixed call to deprecated method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084596 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:20:54 +00:00
Luc Maisonobe
ba43534ea8 removed unused field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084595 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:18:42 +00:00
Luc Maisonobe
d9e8a332b7 removed unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084593 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:13:25 +00:00
Luc Maisonobe
d9e74e0417 removed unused variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084592 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:11:50 +00:00
Luc Maisonobe
97ca946c84 fixed varargs declaration warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084591 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:04:45 +00:00
Luc Maisonobe
c83a4bc0c4 Added a consistency check for number of points with respect to the number of clusters in Kmeans++ clustering
JIRA: MATH-436

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084577 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 13:19:23 +00:00
Luc Maisonobe
862103b3a8 removed unneeded null argument
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1084569 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 13:02:51 +00:00
Mikkel Meyer Andersen
2b463d7a8a MATH-437
Converted R-script used for generating JUnit test-cases to JUnit 4.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083995 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 22:19:49 +00:00
Mikkel Meyer Andersen
93230a061a Added entry in changes.xml for MATH-437 which introduces the two sided Kolmogorov-Smirnov distribution
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083994 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 22:16:52 +00:00
Mikkel Meyer Andersen
fc26a083ee Added entry in changes.xml for MATH-435 which introduces power methods for RealMatrix and FieldMatrix<T>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083993 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 22:15:35 +00:00
Sebastian Bazley
460b8bba3b Convert to Junit4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083965 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 21:29:07 +00:00
Mikkel Meyer Andersen
60c76a7501 Updated references in code that fixes MATH-437
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083859 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 16:29:02 +00:00
Mikkel Meyer Andersen
7feb747c20 Unused import removed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083768 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 13:03:33 +00:00
Mikkel Meyer Andersen
35fa22ed95 (Too) poor javadoc for MATH-437 improved
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083767 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 13:02:34 +00:00