Commit Graph

2654 Commits

Author SHA1 Message Date
Phil Steitz 82880daefb Removed trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144997 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:57:03 +00:00
Phil Steitz fb8fcf184e Moved conditional code into block where it is needed. JIRA: MATH-609.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144996 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:55:38 +00:00
Phil Steitz abb29ca5c3 Restored jdk 1.5 compat.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144994 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:52:20 +00:00
Phil Steitz d3d5c6fb05 Added interface and reporting class for updating regression. JIRA: MATH-607. Contributed by Greg Sterijevski.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144986 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 23:45:43 +00:00
Luc Maisonobe 60f99d976d Prevent step normalizer to output twice the last point in MULTIPLES mode.
JIRA: MATH-603

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144902 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:51:02 +00:00
Luc Maisonobe 4b299469ed updated tests threshold as events are now forced on some root sides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144892 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:08:50 +00:00
Luc Maisonobe ddd7f07939 increased max evaluation count to allow root bracketing post-processing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144890 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:06:44 +00:00
Luc Maisonobe c65e8fdd4e use root bracketing to find events on the appropriate side according to integration direction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144889 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:05:39 +00:00
Luc Maisonobe f31af98c0d prevent root bracketing to be attempted outside of search interval
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144887 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 16:04:51 +00:00
Luc Maisonobe fef1366f09 added constructors with function value accuracy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144861 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 13:48:36 +00:00
Luc Maisonobe 9867b821b7 fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144838 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:28:31 +00:00
Luc Maisonobe 64e12ce3b1 rewrote documentation for root solvers.
JIRA: MATH-606

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144832 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:13:04 +00:00
Luc Maisonobe bdd6b2b578 added a forceSide method to UnivariateRealsolversUtils to allow selecting a bracketing side
even for non-bracketing solvers like Bren or Newton

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144831 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:11:58 +00:00
Luc Maisonobe 208824f3b6 Select bracketing side from the solve method instead of through a setter for consistency with the other solvers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144830 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:10:55 +00:00
Luc Maisonobe 2abc2e6707 Separate implementation of secant solver from bracketing solvers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144828 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:07:30 +00:00
Luc Maisonobe afa158afc7 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144825 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:04:46 +00:00
Luc Maisonobe a58a65a43f use checkNotNull
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144821 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 11:01:56 +00:00
Gilles Sadowski cd6ab81dc8 Typo in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1143729 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 09:36:54 +00:00
Luc Maisonobe fac2e96a31 Added BELOW_SIDE and ABOVE_SIDE in the possible allowed solutions for bracketing solvers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1142244 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 16:27:03 +00:00
Luc Maisonobe 5c185f118b typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141921 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 12:44:47 +00:00
Luc Maisonobe 4500105e12 renamed BracketedSolution into BracketedUnivariateRealSolver and make it extend UnivariateRealSolver.
This will allow specifying directly a sub-category of solvers when needed. It will be used for example by the ODE events detection mechanism, as it will ensure the integrator can automatically go past the event time.

JIRA: MATH-605

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141920 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 12:44:26 +00:00
Luc Maisonobe 77af8e9585 renamed BracketedSolution into BracketedUnivariateRealSolver and make it extend UnivariateRealSolver.
This will allow specifying directly a sub-category of solvers when needed. It will be used for example by the ODE events detection mechanism, as it will ensure the integrator can automatically go past the event time.

JIRA: MATH-605

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141905 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 11:39:28 +00:00
Luc Maisonobe d78c757aa9 removed serialVersionUID for non-serializable classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141890 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:33:55 +00:00
Luc Maisonobe e41aa31c43 fixed unused variable warnings, by really using the computed value
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141889 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:32:39 +00:00
Luc Maisonobe 9833f5c186 removed spurious development benchmarking code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141887 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:21:21 +00:00
Luc Maisonobe 3cd15839ef fixed unused variable warning, using proper Junit4 tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141886 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:18:44 +00:00
Luc Maisonobe 196e7b9269 removed serialVersionUID for non-serializable classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141885 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:16:41 +00:00
Luc Maisonobe 611ddc1966 removed unused variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141884 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:13:36 +00:00
Luc Maisonobe 5dadec877b removed unused variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141882 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:08:38 +00:00
Luc Maisonobe 46dfce79a4 removed unused variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141881 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:06:50 +00:00
Luc Maisonobe b037c6b5a2 removed serialVersionUID for non-serializable classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141880 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:05:20 +00:00
Luc Maisonobe 56752c15f0 removed serialVersionUID for a non-serializable class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141879 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:03:32 +00:00
Luc Maisonobe 0a150a6718 Fixed checkstyle, javadoc, findbugs and eclipse warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139915 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:13:06 +00:00
Luc Maisonobe c56bc8fa33 Forbid if/else/do/while/for without braces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139906 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:42:32 +00:00
Gilles Sadowski d803dbac0e MATH-599
Name change to avoid test failure on the automated build system ("gump").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139837 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 17:02:20 +00:00
Luc Maisonobe 57e2712f50 Removed the requiresDenseOutput method from the StepHandler interface. Now integrators always
consider dense output is required and set up the appropriate state interpolators, so step
handlers can rely on them.

JIRA: MATH-596, MATH-604

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139831 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 16:26:48 +00:00
Gilles Sadowski c005c8d4da MATH-599
Attempt to work around the build failure.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139509 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 09:11:28 +00:00
Gilles Sadowski 7b371c06a9 MATH-599
Added brackets around single-statement conditional branches.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139460 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 23:13:00 +00:00
Gilles Sadowski 06828ea9a8 MATH-599
Inserted "BaseBracketedSecantSolver" into the secant-based solvers hierarchy.
Renamed "SecantBase" to "BaseSecantSolver".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139455 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 22:36:43 +00:00
Gilles Sadowski f3f992d692 Javadoc (real) fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139270 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 12:29:09 +00:00
Luc Maisonobe 9dfd9b34f1 fixed Java 6 specific features
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139235 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 10:39:40 +00:00
Gilles Sadowski 622a9991c2 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139223 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 09:43:33 +00:00
Gilles Sadowski 9764fa8a2d MATH-599
"SecantSolver" modified to correspond to the original algorithm. Added several
secant-based solvers. Patch provided by Dennis Hendriks.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1139126 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 00:12:17 +00:00
Gilles Sadowski a88ba6c1ca MATH-485
"KalmanFilter" and related classes updated by Thomas Neidhart according to
comments on JIRA.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1138461 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 13:42:39 +00:00
Luc Maisonobe d778da77e0 Fixed javadoc for ODEIntegrator interface.
JIRA: MATH-600

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1138419 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 12:03:51 +00:00
Luc Maisonobe 04cb14727d Extended StepNormalizer with normalization mode and bounds settings.
JIRA: MATH-595

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1138061 13f79535-47bb-0310-9956-ffa450edef68
2011-06-21 15:47:23 +00:00
Mikkel Meyer Andersen 6d291937d0 Added fix for MATH-597: Implemented faster generation of random exponential distributed values with algorithm from Ahrens and Dieter (1972): Computer methods for sampling from the exponential and normal distributions. Test case was improved, too.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137795 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 21:42:48 +00:00
Luc Maisonobe ff92629a3b added multiple trials runs to K-means++ clustering algorithm.
JIRA: MATH-548

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137759 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 19:48:44 +00:00
Luc Maisonobe 234db70446 typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137752 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 19:25:11 +00:00
Luc Maisonobe f7ee41ad19 Simplified SubLine API by introducing a public Segment class.
JIRA: MATH-592

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137749 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 19:11:43 +00:00
Luc Maisonobe 588f3b4c59 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137739 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 18:40:41 +00:00
Luc Maisonobe 7a190664bf Added a way to compute sub-lines intersections, considering sub-lines either as open sets or closed sets.
JIRA: MATH-591


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1137738 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 18:40:13 +00:00
Luc Maisonobe 7ec3665fb9 Added a way to build a sub-line from its endpoints, and to retrieve the enpoints from a sub-line.
JIRA: MATH-592

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136154 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 19:20:00 +00:00
Phil Steitz 5f661c3cbc Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136130 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 17:35:01 +00:00
Phil Steitz 6ef1690ba8 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136129 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 17:33:04 +00:00
Phil Steitz a7f015c3ea Removed trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136128 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 17:29:06 +00:00
Phil Steitz 22b2a2a5e9 Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136127 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 17:26:57 +00:00
Phil Steitz 264f6e8c4f Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136115 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 16:44:50 +00:00
Phil Steitz 3b753d7d00 Fixed javadoc error. JIRA: MATH-589.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1136112 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 16:42:21 +00:00
Luc Maisonobe fadef0867e Javadoc fixes in ODE.
JIRA: MATH-594

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1135946 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 07:44:05 +00:00
Luc Maisonobe 7629512cbc Added a way to specify a custom root solver to find events in ODE integration.
JIRA: MATH-586

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1135726 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 18:05:56 +00:00
Phil Steitz 046a2ed6db Start work on JIRA: MATH-575. Made InvalidRepresentationException extend MathIllegalArgumentException and localized error messages for this exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1135025 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 05:09:35 +00:00
Phil Steitz b5a03457a5 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1135008 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 01:24:19 +00:00
Phil Steitz 5f3ad4479b Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1135007 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 23:57:49 +00:00
Phil Steitz b4865d8711 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134983 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 21:07:57 +00:00
Phil Steitz 820cc3fcaa Reverting previous commit. Sorry, that was a real issue.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134973 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 19:59:21 +00:00
Phil Steitz d3036160e2 Removed reference to issue not impacting release.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134970 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 19:55:20 +00:00
Phil Steitz 94415d4462 Added standalone test class for AbstractIntegerDistribution default implementations. JIRA: MATH-587.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134966 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 19:39:27 +00:00
Phil Steitz 72858b8447 Fixed javadoc errors introduced in r1003512 (post 2.2 release). JIRA: MATH-587
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134948 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 17:19:49 +00:00
Phil Steitz 61c5342b50 Restored specificity in exception error messages.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134939 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 15:57:32 +00:00
Phil Steitz 88bd54a422 Fixed error in javadoc. JIRA: MATH-540.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134866 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 05:56:32 +00:00
Phil Steitz 7d738dc352 Improved javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134852 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 01:25:22 +00:00
Phil Steitz e84687da98 Fixed error in javadoc describing the behavior of the Percentile algorithm
for small percentiles in small datasets.
JIRA: MATH-582
Reported by Andre Herbst
Patched by Christopher Nix

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134802 13f79535-47bb-0310-9956-ffa450edef68
2011-06-11 22:28:52 +00:00
Gilles Sadowski 58d1885283 MATH-485
New "filter" package. Initial implementation of Kalman filter provided
by Thomas Neidhart.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1134779 13f79535-47bb-0310-9956-ffa450edef68
2011-06-11 21:39:26 +00:00
Luc Maisonobe 6e9f1d3945 fixed unused variable warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132471 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 18:24:04 +00:00
Luc Maisonobe e00a9b226f Improved k-means++ clustering performances and initial cluster center choice.
JIRA: MATH-584

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132448 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 16:27:53 +00:00
Luc Maisonobe 9dfd54ef0f Fixed tricube function implementation in Loess interpolation.
JIRA: MATH-504

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132439 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 15:59:26 +00:00
Luc Maisonobe 54f921553b Fixed documentation of statistics examples.
JIRA: MATH-568

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132437 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 15:41:50 +00:00
Luc Maisonobe 3f6016591a Improved documentation of general optimization with a thorough example.
JIRA: MATH-507

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132435 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 15:22:31 +00:00
Luc Maisonobe 62a313f67d Replaced NullPointerException by NullArgumentException
JIRA: MATH-403

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1132432 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 14:59:29 +00:00
Luc Maisonobe a4e6f75c86 replaced @version tag by $Id$
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131229 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 20:49:25 +00:00
Luc Maisonobe 8a5f904b36 fixed javadoc, checkstyle and findbugs warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131153 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 19:23:56 +00:00
Luc Maisonobe 356a99a7bb added missing methods in Vector1D/2D/3D
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131152 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 19:22:20 +00:00
Luc Maisonobe 540bf1525f use the reorganized Binary Space Partitioning framework for Euclidean spaces 1D, 2D and 3D.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131127 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 18:08:12 +00:00
Luc Maisonobe 6a14866cfc Improved type safety for Binary Space Partitioning and reduced complexity,
using generics where it was relevant and reorganizing interfaces.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131125 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 18:06:21 +00:00
Luc Maisonobe a31933b64a Added a consistent classes hierarchy for Euclidean spaces in dimension 1, 2 and 3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1131123 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 18:02:48 +00:00
Phil Steitz 6b3df11f0d Updated trunk to reflect 2.2 release.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1129833 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 18:15:01 +00:00
Phil Steitz 4f63173306 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1128976 13f79535-47bb-0310-9956-ffa450edef68
2011-05-29 23:18:17 +00:00
Luc Maisonobe 5ce6c97bcc added a method to retrieve the closest point from a line to the origin.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124652 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 09:59:49 +00:00
Luc Maisonobe c70f393f4a renamed packages oneD, twoD and threeD into oned, twod and threed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124619 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 09:12:48 +00:00
Luc Maisonobe 07ecb4d65a fixed typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124398 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 19:55:30 +00:00
Luc Maisonobe 5cf31cb6d5 improved javadoc as per Gilles's suggestions on the dev list.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124191 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 11:15:24 +00:00
Luc Maisonobe 0a853fd5a7 improved javadoc for FastMath.
JIRA: MATH-579

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124151 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 09:48:24 +00:00
Gilles Sadowski dbb142bc5a MATH-574
Fixed Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1104600 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 22:19:54 +00:00
Gilles Sadowski 695dc3bdcc MATH-574
Allow outer product of vectors of different sizes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1104575 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 21:38:45 +00:00
Gilles Sadowski 987f659a12 MATH-574
Allow outer product of vectors of different sizes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103716 13f79535-47bb-0310-9956-ffa450edef68
2011-05-16 12:30:15 +00:00
Gilles Sadowski 541527bdf3 Removed unnecessary exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103710 13f79535-47bb-0310-9956-ffa450edef68
2011-05-16 12:13:51 +00:00
Gilles Sadowski 7e3ad29257 Added "@Retry".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103707 13f79535-47bb-0310-9956-ffa450edef68
2011-05-16 12:01:11 +00:00
Luc Maisonobe 03fa7c1431 A complete generic implementation of Binary Space Partitioning Trees (BSP trees)
has been added. A few specializations of this implementation are also provided
for 1D, 2D and 3D Euclidean geometry. This allows support for arbitrary
intervals sets (1D), polygons sets (2D) and polyhedrons sets (3D) with all
sets operations (union, intersection, symmetric difference, difference, complement),
with predicates (point inside/outside/on boundary, emptiness, other region contained),
with geometrical computation (barycenter, size, boundary size) and with conversions
from and to boundary representation.

JIRA: MATH-576


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103438 13f79535-47bb-0310-9956-ffa450edef68
2011-05-15 16:02:05 +00:00
Luc Maisonobe e401d4ac06 add a retry feature for randomly failing CMA-ES optimizer test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103418 13f79535-47bb-0310-9956-ffa450edef68
2011-05-15 15:00:33 +00:00
Luc Maisonobe e12caa8de1 specify the field to use for field vectors and field matrices when possible
JIRA: MATH-573

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103370 13f79535-47bb-0310-9956-ffa450edef68
2011-05-15 13:16:29 +00:00
Phil Steitz 026fb14740 Improved javadoc and added infinite/NaN argument tests for reduce.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103182 13f79535-47bb-0310-9956-ffa450edef68
2011-05-14 18:51:26 +00:00
Phil Steitz 3424131d52 Fixed javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103142 13f79535-47bb-0310-9956-ffa450edef68
2011-05-14 16:04:46 +00:00
Gilles Sadowski ee37a5197c MATH-574
Allow outer product of vectors of different sizes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1102704 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 13:03:30 +00:00
Gilles Sadowski b8243cc166 MATH-574
Allow outer product for vectors of different sizes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1102356 13f79535-47bb-0310-9956-ffa450edef68
2011-05-12 15:49:40 +00:00
Gilles Sadowski 716a7bb2df Class "RandomAdaptorTest" needlessly inherited from "RandomDataTest".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1102229 13f79535-47bb-0310-9956-ffa450edef68
2011-05-12 10:07:19 +00:00
Luc Maisonobe 45ec0d393f Added field parameter on various constructors in Array2DRowFieldMatrix.
JIRA: MATH-573

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1102057 13f79535-47bb-0310-9956-ffa450edef68
2011-05-11 19:57:42 +00:00
Luc Maisonobe 35d78323b2 Avoid some remaining array copying in ArrayFieldVector, AbstractFieldMAtrix and AbstractRealMatrix.
JIRA: MATH-573

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1101763 13f79535-47bb-0310-9956-ffa450edef68
2011-05-11 06:57:47 +00:00
Luc Maisonobe 8ef3dd0269 Avoid some array copying in add and subtract ArrayFieldVector.
JIRA: MATH-573

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1101579 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 18:19:36 +00:00
Luc Maisonobe d84695d151 Fixed an unused constructor parameter in ArrayFieldVector.
JIRA: MATH-572

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1101575 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 18:09:07 +00:00
Gilles Sadowski c7f092e022 MATH-566
Changed all exception classes to use the new "ExceptionContext".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1101029 13f79535-47bb-0310-9956-ffa450edef68
2011-05-09 13:54:34 +00:00
Luc Maisonobe ec6dbad43a Fixed conversion problems to/from 0 in Decimal Floating Point (Dfp) class.
JIRA: MATH-567

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1099938 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 19:41:28 +00:00
Gilles Sadowski 1df5ae529c MATH-566
Created "ExceptionContext" class.
Made "MathIllegalArgumentException" inherit from the Java standard
"IllegalArgumentException".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1099771 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 12:37:31 +00:00
Phil Steitz ec198897ee Reuse is one word :).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097918 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 19:08:09 +00:00
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 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 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 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