Niall Pemberton
79a0ac99bc
Re-generate the download pages using the new commons-build-plugin .12 (via commons-parent version 13)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@920156 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 00:11:50 +00:00
Luc Maisonobe
fbecc3ecbf
fixed wrong subscript
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@920132 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 22:22:24 +00:00
Luc Maisonobe
ed40ebc5cd
improved documentation of ODE package, including the new jacobians part
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@920131 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 22:19:18 +00:00
Luc Maisonobe
7a7eb1dccc
separated ODEWithJacobians from ParameterizedODE:
...
when jacobians are already available, there is no need to have a setParameter method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919963 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 10:59:33 +00:00
Luc Maisonobe
484fc6330b
suppressed a warning for unused constructor
...
the constructor is called only by externalization
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919856 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 21:33:42 +00:00
Luc Maisonobe
70586e476e
fixed findbugs errors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919855 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 21:30:37 +00:00
Luc Maisonobe
d381e12f99
fixed javadoc errors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919848 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 20:50:02 +00:00
Luc Maisonobe
f5f8956448
added event handling to ODE integrators with jacobians
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919844 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 20:38:55 +00:00
Luc Maisonobe
9034808411
added miscellaneous methods to get some feedback on the integration process
...
(step start, step size, number of evaluations ...)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919829 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 19:39:17 +00:00
Luc Maisonobe
fdd038890a
Set up a named Wrapper inner class to map state plus jacobians into compound state
...
for ODE integration with added variational equations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919815 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 18:54:27 +00:00
Luc Maisonobe
018daf4d96
improved test coverage
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919481 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 16:39:10 +00:00
Luc Maisonobe
4e13f9660b
fixed handling of the time-derivatives of jacobians
...
simplified copy and serialization
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919480 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 16:38:02 +00:00
Luc Maisonobe
81e8b4f0d1
Fixed a problem with getInterpolatedDerivatives returning zero derivatives when
...
an ODE step handler is configured to not use interpolation. It now returns a
constant but non-zero value consistent with at least one point inside the step
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919479 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 16:35:56 +00:00
Luc Maisonobe
1bb6d2ad6b
typos
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919178 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 20:56:26 +00:00
Luc Maisonobe
11a792efbe
explained test rationale
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919172 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 20:50:08 +00:00
Luc Maisonobe
74cb951d91
added package.html for ode.jacobians
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919167 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 20:41:42 +00:00
Luc Maisonobe
21c37897f0
fixed an index error in dy/dy0 computation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@919166 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 20:40:49 +00:00
Luc Maisonobe
5256967cf7
Simplified names of ODE with Jacobians integration classes
...
Added step handling for this feature
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@918702 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 21:28:16 +00:00
Luc Maisonobe
57c45aca3d
Fixed too stringent interval check in Brent solver:
...
initial guess is now allowed to be at either interval end
JIRA: MATH-347
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917668 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 19:38:34 +00:00
Luc Maisonobe
46abbb40e1
Added a way to compute both the final state in an Initial Value Problem (IVP)
...
for Ordinary Differential Equations (ODE) and its derivatives with respect to
initial state and with respect to some problem parameters. This allows wrapping
ODE solvers into optimization or root finding algorithms, which in turn can be
used to solve Boundary Value Problems (BVP). There are no implementations (yet)
of BVP solvers in the library.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917592 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 17:07:47 +00:00
Luc Maisonobe
5340f4c335
fixed a checkstyle warning concerning extra parentheses
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917277 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:44:49 +00:00
Luc Maisonobe
3a028a2a94
fixed variables declaration order to match checkstyle rules
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917275 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:43:11 +00:00
Luc Maisonobe
71819532ac
removed tab
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917272 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:39:21 +00:00
Luc Maisonobe
0ff118952a
fixed javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917271 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:38:15 +00:00
Phil Steitz
1c9a550569
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917270 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:37:53 +00:00
Phil Steitz
ccc24d8913
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917269 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:35:36 +00:00
Luc Maisonobe
37bef8b8f3
added a test that was used some time ago while looking at MATH-341
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@917261 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 19:24:01 +00:00
Luc Maisonobe
8a687cc604
removed a compilation warning about unused variable
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@915816 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 15:18:37 +00:00
Luc Maisonobe
b97285ee1b
removed unreachable code
...
JIRA: MATH-343
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@915756 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 11:33:22 +00:00
Luc Maisonobe
a0b4b4b798
Fixed wrong return values when enpoints are roots in Brent solver with a user provided initial guess
...
JIRA: MATH-344
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@915522 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 21:09:25 +00:00
Luc Maisonobe
f6dd42b4fc
Fixed a missing bracketing check of initial interval in Brent solver
...
JIRA: MATH-343
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@915517 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 21:01:38 +00:00
Dimitri Pourbaix
05361c5a34
MATH-432 fixed
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@912413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-21 21:46:12 +00:00
Phil Steitz
ccf7732750
Added test utility inadvertently omitted from r910264. JIRA: MATH-323.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@910784 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 00:25:19 +00:00
Dimitri Pourbaix
c1ce0e39e0
Dummy tests removed after revision 910475
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@910479 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 11:20:17 +00:00
Dimitri Pourbaix
95627968c1
MATH-333 fixed
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@910475 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 11:12:55 +00:00
Phil Steitz
f822b3285a
Added SemiVariance. JIRA: MATH-323. Reported and patched by Larry Diamond.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@910264 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 17:10:54 +00:00
Phil Steitz
993dcad4b1
Eliminated trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@908626 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 18:44:42 +00:00
Luc Maisonobe
69e227356d
Added a warning in the getCoefficients method documentation for
...
PolynomialFunctionLagrangeForm. Computation may be ill-conditioned
so this method should be used with care.
JIRA: MATH-341
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@908190 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 20:07:36 +00:00
Luc Maisonobe
5e879a5b15
Fixed an error in BigFraction multiplication for large numerators that don't fit in a primitive int.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@906251 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 21:19:54 +00:00
Luc Maisonobe
1e52e71b14
fixed a spurious exception in EigenDecompositionImpl when a 3x3 block had two identical eigenvalues
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@904561 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 17:08:28 +00:00
Luc Maisonobe
73e340ab6e
added min/max getters for real vectors
...
For compatibility reasons, these methods have been put in the topmost abstract class but not in the interface yet. It could be pushed to the interface when next major version will be released.
JIRA: MATH-334
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@904231 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 19:42:31 +00:00
Luc Maisonobe
8dd2239074
Fixed automatic step initialization in embedded Runge-Kutta integrators.
...
The relative tolerance setting was never used, only the absolute tolerance was used.
JIRA: MATH-338
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@904112 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 15:01:55 +00:00
Luc Maisonobe
e00564e3b7
removed unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903446 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:57:13 +00:00
Luc Maisonobe
c3b2a19353
typos
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903442 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:56:20 +00:00
Luc Maisonobe
4119c35554
added Eugene Kirpichov's patch to ignore zero weights in Loess interpolation
...
JIRA: MATH-296
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903440 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:53:59 +00:00
Phil Steitz
25f0b04809
Disabled testNextPoissonConsistency pending resolution of MATH-282.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903156 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 10:28:12 +00:00
Sebastian Bazley
d4338927c8
Document why OK to suppress unchecked warning
...
Move tag as close as possible to site of warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903059 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 02:53:00 +00:00
Sebastian Bazley
112c7aa7c9
Document why OK to suppress unchecked warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903047 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 02:07:42 +00:00
Sebastian Bazley
7e8bf7eedd
Document why OK to suppress unchecked warning
...
Move tag as close as possible to site of warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903046 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 02:07:26 +00:00
Sebastian Bazley
7aae8a4dae
Document why OK to suppress unchecked warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903044 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 02:00:09 +00:00
Sebastian Bazley
acdd9f2805
Fix typo in copy() code
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902934 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:09:17 +00:00
Sebastian Bazley
a15507466b
Does not make sense for count variable to be public
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902931 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:05:00 +00:00
Sebastian Bazley
52ec13ba7d
Make private static fields final
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902930 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:04:32 +00:00
Sebastian Bazley
d6fc4d3fba
Document field thread-safety
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902929 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:03:56 +00:00
Sebastian Bazley
4487658a3a
Make private constant final
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902928 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:03:26 +00:00
Sebastian Bazley
517f665a54
Fix may be null warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902216 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:41:18 +00:00
Sebastian Bazley
dcc3a769f6
FIx deprecation warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902215 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:40:55 +00:00
Sebastian Bazley
36a706e811
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902214 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:40:28 +00:00
Sebastian Bazley
42a5482d7a
Fix missing @Override and @Deprecated annotations
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902203 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:27:41 +00:00
Sebastian Bazley
5a91cbf932
Remove suite() methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902201 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:18:16 +00:00
Sebastian Bazley
0eba4a5c31
Unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@902200 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 18:12:08 +00:00
Luc Maisonobe
3bac1ef344
fixed link typo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@900457 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 16:54:00 +00:00
Luc Maisonobe
5776f21e54
improved javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@900451 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 16:31:18 +00:00
Phil Steitz
6dd3724b9b
Fixed regression in Frequency.getPct(Object) introduced in 2.0. Cumulative
...
percent was being returned for Object arguments in place of percent.
JIRA: MATH-329
Reported by Will Wu
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@900016 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 20:01:17 +00:00
Luc Maisonobe
b2f3f6db41
Singular Value Decomposition now computes either the compact SVD (using only positive singular values) or truncated SVD (using a user-specified maximal number of singular values).
...
Fixed Singular Value Decomposition solving of singular systems.
JIRA: MATH-320, MATH-321
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894908 13f79535-47bb-0310-9956-ffa450edef68
2009-12-31 17:52:16 +00:00
Phil Steitz
81ae49bafe
Updated to reflect recent commits.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894738 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 23:26:40 +00:00
Luc Maisonobe
c06cc933b6
changed SVD to compute either compact SVD (using only positive singular values)
...
or truncated SVD (using only singular values up to a user-specified max number)
started fix of SVD solver that did not compute a least square solution
the fix is not complete yet as it seems the solution does not really gives the
smallest possible residuals. See for example the commented out parts of
testMath320A in SingularValueSolverTest.
JIRA: MATH-320
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894735 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 23:17:01 +00:00
Phil Steitz
52c9e2a2f8
Added gcd(long, long), lcm(long, long) methods. JIRA: MATH-239.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894730 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 23:03:23 +00:00
Phil Steitz
2d247ea48f
Added @since tags for new methods. JIRA: MATH-287
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894705 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 20:24:54 +00:00
Phil Steitz
0571fc07de
Deprecated addValue(Integer). JIRA: MATH-260.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894529 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 01:27:40 +00:00
Phil Steitz
0920122ae6
Changed weighted variance computational formula to use Chan-Golub method (consistent with unweighted version).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894528 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 01:03:32 +00:00
Phil Steitz
e193fc40fd
Fixed type from r894472. JIRA: MATH-287
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894474 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 20:02:37 +00:00
Phil Steitz
6faddc04de
Added WeightedEvaluation interface and added evaluate(values, weights) to weighted statistics implementations. JIRA: MATH-287.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894472 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 19:57:49 +00:00
Luc Maisonobe
ce185345fa
fixed a wrong implementation of the Linf vector norm
...
JIRA: MATH-326
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894367 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 12:24:58 +00:00
Luc Maisonobe
3c122e41b1
fixed checkstyle warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894187 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 15:30:03 +00:00
Luc Maisonobe
cb75cc3458
improved test coverage (now somewhere between 99% and 100%)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894186 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 15:23:23 +00:00
Luc Maisonobe
9f547049c3
fixed a few remaining unnecessary copy
...
added more constructors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894185 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 15:21:00 +00:00
Luc Maisonobe
6f74aee73d
fixed a forgotten replacement of divide method
...
JIRA: MATH-307
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894109 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 21:06:21 +00:00
Luc Maisonobe
97a9dcf29e
adding rounding mode and scale as per 1.2
...
JIRA: MATH-307
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894107 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 20:03:08 +00:00
Luc Maisonobe
d3b9c7f965
removed support for non-zero default values in OpenMapRealVector
...
JIRA: MATH-312
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894093 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 18:48:16 +00:00
Luc Maisonobe
a5e03a2389
added tests showing that issues MATH-303 and MATH-304 are both invalid.
...
Jira: MATH-303, MATH-304
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894083 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 17:33:37 +00:00
Luc Maisonobe
95f2dd6f5f
Fixed a convergence discrepancy with respect to theory in Gragg-Bulirsch-Stoer integrator.
...
JIRA: MATH-324
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@893281 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 19:30:10 +00:00
Luc Maisonobe
204990415d
Fixed a wrong dimension check in SVD solver
...
thanks to Dimitri for identifying and solving this
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@891436 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 21:44:13 +00:00
William Barker
01e5f22cc5
Add an optimized dotProduct to OpenMapRealVector.
...
Slightly modified from contribution by Jake Mannix.
JIRA: MATH-317
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@890159 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 02:53:40 +00:00
William Barker
b26de3b0aa
Removing the mapTo* metheds from OpenMapRealVector, and use the base class methods instead
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@890023 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 04:27:34 +00:00
Luc Maisonobe
6a5848130f
added composition features for real functions
...
JIRA: MATH-313
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@890002 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 23:15:32 +00:00
Luc Maisonobe
06c388acc9
fixed checkstyle errors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@889999 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 23:11:01 +00:00
William Barker
1778991834
Initial fixes to the iterators.
...
This fixes the default sparseIterator problem where a RealVector only contains zero elements, and add a sparseIterator to the OpenMapRealVector.
Still TODO:
1) add unit tests
2) remove *mapTo and *mapToSelf from OpenMapRealVector
3) fix javadocs
4) remove support for non-zero default values in OpenMapRealVector
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@889516 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 06:38:20 +00:00
Luc Maisonobe
9e9048ccb5
Added mapping and iteration methods to vectors.
...
Provided a default implementation for the numerous simple methods in the RealVectorInterface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@889008 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 22:56:11 +00:00
Luc Maisonobe
7fb69bcf38
added UnivariateRealFunction type implementations of the java.lang.Math methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@889007 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 22:49:24 +00:00
Luc Maisonobe
c0f87c7000
removed trailing whitespace
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@889006 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 22:46:36 +00:00
Sebastian Bazley
a97a14915d
Unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@888685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 02:37:00 +00:00
Sebastian Bazley
b910285857
Unnecessary ;
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@888684 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 02:36:28 +00:00
Sebastian Bazley
0f98e5c13d
Tab police
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@888683 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 02:34:11 +00:00
Sebastian Bazley
e91eaa0c98
Unnecessary casts; tab police
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@888680 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 02:30:02 +00:00
Luc Maisonobe
f7c0b403d2
Fixed an error in handling of very close events during ODE integration
...
JIRA: MATH-322
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@887794 13f79535-47bb-0310-9956-ffa450edef68
2009-12-06 23:04:55 +00:00
Luc Maisonobe
335572b99e
Prevent NaN to occur for singular matrices
...
Numerical inaccuracies in the underlying eigendecomposition could induce
very small negative eigenvalues, so the square root produced NaNs. The
eigenvalues really cannot be negative, so it is safe to replace the negative
ones by 0.
There are remaining problems with singular matrices:
- the singular vectors also contain NaNs
- the solver does not really work in least square sense and
complain about singular matrices
JIRA: MATH-320
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885279 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:53:36 +00:00
Luc Maisonobe
93dbc5a0c3
replaced duplicated strings by a single static string in many classes
...
this will later allow enabling the MultipleStringLiterals rule in checkstyle
(there are many other duplicated strings, so this cannot be enabled yet, I'll
do another pass on it later on)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885278 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:47:51 +00:00
Luc Maisonobe
9a324dc546
fixed some NaN appearing in eigenvectors when null pivots occurred in dstqds or dqds algorithms
...
this is a partial fix for MATH-297 but not a complete one as for example computing the
eigendecomposition if identity leads to three times the same vector ...
JIRA: MATH-297
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885268 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:21:50 +00:00
Luc Maisonobe
abb1b3fdd6
removed an unneeded constant
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885049 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 23:27:16 +00:00
Luc Maisonobe
79383e3ad3
added a test with a singular matrix
...
updated class to Junit4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885048 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 23:24:12 +00:00
Phil Steitz
ef9b639afc
Fixed an overflow error in MathUtils.distance that was causing KMeansPlusPlusClusterer to fail with a NullPointerException when
...
component distances between points exceeded Integer.MAXVALUE.
JIRA: MATH-305
Reported by Erik van Ingen
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885027 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 21:45:38 +00:00
Phil Steitz
9e6576e7cd
Added toString.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885013 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 21:05:04 +00:00
Phil Steitz
cab28ac044
Fixed test case for number of generations evolved.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885009 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 21:03:34 +00:00
Phil Steitz
80f4084139
Added generationsEvolved property to GeneticAlgorithm to track the number
...
of generations evolved by the evolve() method before reaching the StoppingCondition.
JIRA: MATH-315
Reported and patched by Mikkel Meyer Andersen
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@883132 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 19:50:54 +00:00
Luc Maisonobe
713a4fdd73
fixed yet another eigen decomposition bug identified, debugged and fixed by Dimitri!
...
Many thanks to him.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@833740 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 19:57:02 +00:00
Luc Maisonobe
83f18d5299
Fixed an index computation error in eigen decomposition.
...
Once again, kudos to Dimitri for debugging this.
JIRA: MATH-318
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@833433 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 15:11:57 +00:00
Luc Maisonobe
c78a0e3b00
fixed an ArrayIndexOutOfBoundsException
...
Kudos to Dimitri who debugged this mess of fortran/java array indices translation
JIRA: MATH-308
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@832577 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 22:04:08 +00:00
Phil Steitz
0596e3145c
Fixed parameter test in RandomDataImpl#nextExponential. JIRA: MATH-309.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@831510 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 02:30:18 +00:00
Luc Maisonobe
2741a781e9
fixed checkstyle errors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830771 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:53:35 +00:00
Luc Maisonobe
bf9f4cf20e
changed TWO_PI visibility to public
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830770 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:52:39 +00:00
Brent Worden
19f633c6ae
MATH-311. Changed probability calculations for Binomial, Poisson, and Hypergeometric distributions to use Catherine Loader's saddle point approximations
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830745 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 19:59:21 +00:00
Phil Steitz
c09247c09b
Removed dead code, improved test coverage. Dead code pointed out in JIRA: MATH-306. Thanks to Joerg Huber.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830044 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 01:32:19 +00:00
Phil Steitz
c30aac9ad6
Javadoc only. Dropped 'now defunct' from JAMA attribution.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826627 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 10:27:47 +00:00
William Barker
adbe097b2b
documenting change
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826560 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 00:03:46 +00:00
William Barker
becc8d9704
Fix for possible zero divide on an indefinite matrix
...
Fix for: MATH-297
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826550 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 23:29:37 +00:00
Luc Maisonobe
ddc5554353
fixed typo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826232 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 11:25:14 +00:00
Luc Maisonobe
a667bf2834
replaced custom linear solve computation by use of the linear package features
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825925 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 15:11:47 +00:00
Luc Maisonobe
0cb01403a1
tighten checkstyle rules: declaring multiple variables in one statement is now forbidden
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825919 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 14:51:55 +00:00
Luc Maisonobe
88885e7a1c
fixed a checkstyle warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825917 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 14:47:27 +00:00
Luc Maisonobe
925305f0fa
removed a Math.min computation that could be avoided
...
improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825784 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 07:12:56 +00:00
Luc Maisonobe
dd9b7b477a
improved array structure in Romberg integrator
...
since the integrator uses only two rows at a time, we allocate only two arrays and reuse them
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824822 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 15:56:51 +00:00
Luc Maisonobe
e975825996
tightened checkstyle rules
...
catching top level exceptions (Exception, Throwable and RuntimeException) is now forbidden
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824783 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 14:30:27 +00:00
Luc Maisonobe
50e9a948aa
fixed checkstyle warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824760 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 13:48:52 +00:00
Phil Steitz
2c8a114f76
Implemented alternative algorithm for generating poisson deviates when the mean is large. JIRA: MATH-294.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824214 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 02:04:06 +00:00
Phil Steitz
5fb5e80a15
Added (disabled) test case demonstrating MATH-282 impact on poisson distribution for large means.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824183 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11 21:45:55 +00:00
Luc Maisonobe
f5398ad3cf
delay message build until really needed
...
this allows not wasting time dealing with resources, strings and formatting when the exception is discarded and its message not used
thanks to Gilles for the suggestion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822850 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 18:56:42 +00:00
Luc Maisonobe
2ed606cfc0
fixed javadoc typo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822454 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 19:29:52 +00:00
Luc Maisonobe
798518841b
fixed missing throw
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822429 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 18:53:57 +00:00
Phil Steitz
340943f1f5
Dump expected/observed bin counts on poisson consistency test failure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822205 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 10:34:45 +00:00
Luc Maisonobe
3cabfc5846
added multidimensional interpolation using the microsphere algorithm.
...
JIRA: MATH-300
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@821626 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 21:57:30 +00:00
Phil Steitz
a72bbf44cf
Added goodness of fit test for poisson deviates.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@819492 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 10:36:46 +00:00
Luc Maisonobe
7dd8773ea3
fixed checkstyle warning on missing javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@818943 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 18:36:55 +00:00
Luc Maisonobe
d98e430b04
fixed wrong results in Loess interpolator
...
also added a way to set weights for smoothing
JIRA: MATH-296
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@818942 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 18:33:34 +00:00
Phil Steitz
97fb25eb35
Commit change inadvertenly omitted from r817128. JIRA: MATH-298
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@817132 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 02:13:39 +00:00
Phil Steitz
e9771d7eb5
Fixed implementation of EmpiricalDistributionImpl#getUpperBounds to match interface
...
contract. Added getGeneratorUpperBounds method to EmpiricalDistributionImpl providing previous behavior.
Jira: Math-298
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@817128 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 01:30:53 +00:00
Luc Maisonobe
5fbeb731b9
cleaned up tests wrt Junit 4
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@816654 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 14:39:18 +00:00
Luc Maisonobe
59a0da9c4c
Fixed a OutOfBoundException in simplex solver when some constraints are tight
...
JIRA: MATH-293
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@813301 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:20:28 +00:00
Luc Maisonobe
3cf3b82b72
renamed a test after a change in the tested class
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@813296 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:16:24 +00:00
Luc Maisonobe
d2ba1651ed
applied Andrea's patch to improve test
...
JIRA: MATH-286
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812921 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 12:22:14 +00:00
Sebastian Bazley
3c6d5dff6e
MATH-292 TestUtils.assertRelativelyEquals() generates misleading error on failure
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812871 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 10:11:15 +00:00
Luc Maisonobe
aa91ffbe33
applied Benjamin's patch from 2009-09-08
...
warning: I had to update the expected matrix in SimplexTableauTest.testdiscardArtificialVariables
JIRA: MATH-286
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812831 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 08:48:03 +00:00
Luc Maisonobe
e5a77a7651
added Benjamin's patch from 2009-09-07
...
JIRA: MATH-286
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812390 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 08:40:12 +00:00
Sebastian Bazley
53a9ee3979
Clarify test failure messages
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812147 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 14:08:16 +00:00
Sebastian Bazley
8961047173
Clarify parse test messages
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811897 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 21:26:18 +00:00
Luc Maisonobe
5a63bb398c
removed unnecessary parentheses
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811833 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 16:27:50 +00:00
Luc Maisonobe
f8254ebbd3
use standard declaration order rules
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811827 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 15:32:50 +00:00
Luc Maisonobe
54c0e73219
tighten rules for public/private/abstract/final/... modifiers
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811786 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:36:08 +00:00
Luc Maisonobe
d485dca2ce
added checkstyle rule to forbid @authors
...
authors should be listed in the pom file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811783 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 08:56:58 +00:00
Luc Maisonobe
514680c03e
fixed checkstyle errors about utility classes constructors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811780 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 08:38:59 +00:00