Commit Graph

2950 Commits

Author SHA1 Message Date
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
Mikkel Meyer Andersen ba9b83410c Remove invalid @Override annotation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083734 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 11:27:02 +00:00
Mikkel Meyer Andersen 77beb609fe Remove invalid @Override annotation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083733 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 11:26:09 +00:00
Mikkel Meyer Andersen 4ab2c3dddb Fixes MATH-437: Added two sided Kolmogorov-Smirnov distribution using modified Marsaglia et al. (2003) implementation and quick decisions for certain parameter areas according to Simard et al. (2011).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083716 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 09:39:23 +00:00
Mikkel Meyer Andersen 0536a2a7cf MATH-435
Added "power" method in "FieldMatrix<T>" interface and default implementation in "AbstractFieldMatrix".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083713 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 09:28:34 +00:00
Mikkel Meyer Andersen ff8535a61b Insert missing @Test annotation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083706 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 08:52:14 +00:00
Mikkel Meyer Andersen 840143f195 Remove @Override for consistency
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083704 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 08:51:05 +00:00
Mikkel Meyer Andersen 31fa9a7faa MATH-435
Added "power" method in "RealMatrix" interface and default implementation in "AbstractRealMatrix".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083698 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 08:14:17 +00:00
Luc Maisonobe 96c2ce3983 Converted tests to Junit4.
There is one thing remaining: the retry feature in RetryTestCase has been disabled temporarily. We need to find some way to implement it using Junit 4 API.

JIRA: MATH-423

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083514 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 17:24:14 +00:00
Gilles Sadowski d708c9d101 MATH-446
Removed checked exceptions.
Some Javadoc cleanup.
Tests upgraded to Junit 4 (MATH-423).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083323 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 22:49:59 +00:00
Gilles Sadowski 0207f15a49 MATH-487
Removed checked exceptions.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083167 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 12:04:31 +00:00