Commit Graph

2781 Commits

Author SHA1 Message Date
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
Gilles Sadowski 3c0afa529e New API (MATH-542).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083166 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 12:02:04 +00:00
Gilles Sadowski 566075ee5c MATH-545
Added "cosine" method in "RealVector" interface and default implementation
in "AbstractRealVector".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1082442 13f79535-47bb-0310-9956-ffa450edef68
2011-03-17 10:38:19 +00:00
Gilles Sadowski e41d0d67e3 MATH-542
Removed unnecessary method, as the case is taken care of with the other
"addMessage" method (with varargs).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1082124 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 11:07:05 +00:00
Gilles Sadowski b6bf8f418a MATH-546
Wrong  variable type ("int" instead of "double").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1081744 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 12:15:02 +00:00
Gilles Sadowski 35a0923edf MATH-542
Allow to "addMessage" without arguments (avoiding the need to explicitly
pass "null").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1081741 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 11:42:23 +00:00
Gilles Sadowski e8e3d821bb Removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080576 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 14:23:55 +00:00
Gilles Sadowski 1e2172b4d5 MATH-503
Added parametric version of the "Logistic" function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080571 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 14:03:59 +00:00
Gilles Sadowski ef425179b5 MATH-542
Added custom "writeObject" and "readObject" so that serialization can
proceed even if non-"Serializable" objects are stored (in messages
arguments or context values).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080231 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 14:05:32 +00:00
Gary D. Gregory b76de144c9 Ignore resources generated by Maven eclipse:eclipse
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079938 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 19:04:30 +00:00
Gary D. Gregory 8595215c98 Follow branding reqs from http://www.apache.org/foundation/marks/pmcs#graphics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079935 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 19:01:41 +00:00
Gilles Sadowski faed36db10 [Previous commit was a mistake.]
Created a "SerializablePair" for use in "MathRuntimeException".
Uncommented the test in "DummyStepInterpolatorTest".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079545 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 21:09:48 +00:00
Gilles Sadowski 4a01140363 Removed unused message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079528 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:42:14 +00:00
Gilles Sadowski 9e79920ec5 MATH-403
Added "CheckNotNull" methods.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079519 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:32:40 +00:00
Gilles Sadowski e3fe16402e MATH-544
Matrix exception classes moved back to package "linear". Removed unnecessary
"import" statements, fixed Javadoc and unit tests and upgraded them to
JUnit 4 (MATH-423).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079350 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 13:42:16 +00:00
Gilles Sadowski dd39f901b2 MATH-542
Class is not used anymore.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078746 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 11:29:18 +00:00
Gilles Sadowski da462abca0 MATH-542
"MathRuntimeException" provides two ways for enhancing the information content:
one for localized messages and one for storing "context" objects.
The additional methods have been added to "MathThrowable". Consequently, dummy
implementations were needed in the old "MathRuntimeException" and
"MathException".
Some parts of the tests for old exceptions were removed as they used methods
that were deleted. A call to "MathUserException" in "AbstractContinuousDistribution"
was simplified for the same reason.
"MathUtils" still contained "String" (instead of "Localizable") as argument to
the constructor of a "MathArithmeticException".
I don't know why a test in "DummyStepInterpolatorTest" stopped working. It is now
commented out; please have a look.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078734 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 10:37:52 +00:00
Sebastian Bazley 47d9a5d240 Alternate solution: remove shadowing by removing copies (since class is not static)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078466 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 13:24:43 +00:00
Sebastian Bazley 1f3c6973e3 Rename private variables to avoid name shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078445 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 10:58:23 +00:00
Sebastian Bazley b20cc34b67 Make write-once private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078444 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 10:57:11 +00:00