Phil Steitz
dae4cf5da1
Added missing throws declarations and fixed javadoc to match what is actually thrown. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385386 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 22:11:15 +00:00
Thomas Neidhart
0752ffec8f
[MATH-666] added to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385318 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:54:20 +00:00
Thomas Neidhart
79f99111d5
[MATH-666] make FieldVector#getData() method deprecated in favor of toArray(), minor formatting, move implementation of SparseFieldVector#getData() to toArray().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385316 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:50:32 +00:00
Thomas Neidhart
1f914f9917
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385315 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:37:34 +00:00
Thomas Neidhart
b694b79c60
Javadoc formatting and fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385314 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:35:49 +00:00
Thomas Neidhart
be41bc2053
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385313 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:35:23 +00:00
Thomas Neidhart
7536672818
Javadoc cleanup of transform package, removed unnecessary paragraph tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385310 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:32:10 +00:00
Thomas Neidhart
75fe8b8b99
Javadoc cleanup of linear optimization package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385307 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:19:55 +00:00
Thomas Neidhart
0a900fa692
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385301 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:11:53 +00:00
Thomas Neidhart
9ad58f46b0
Replace deprecated method call.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385299 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:09:17 +00:00
Thomas Neidhart
497fe1c79b
Remove trailing spaces in javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385298 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:09:00 +00:00
Thomas Neidhart
1a9e32ab8f
[MATH-854] fill throws clause for genetics package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385297 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:05:57 +00:00
Thomas Neidhart
ef8beb8b2b
Javadoc cleanup of genetics package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385284 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 15:19:55 +00:00
Thomas Neidhart
6709b11f9e
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385279 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 15:06:06 +00:00
Thomas Neidhart
51f446bf0c
[MATH-789] Fixed rank calculation in case of dependant columns, added additional constructor that repaces small parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384945 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 21:55:46 +00:00
Luc Maisonobe
c8b8e61243
Use the new differentiation framework in optimization package.
...
As a temporary hack for backward compatibility, some optimizers do
provide "optimize" methods which accept the new functions signatures
(i.e. MultivariateDifferentiableXxxFunction), but they do *not*
advertise it in their "implements" clause. The reason for that is that
Java forbid implementing a parameterized interface with two different
parameters. These optimizers already implement the interface with the
older functions signatures, and this cannot be removed as of 3.1.
When 4.0 will be started, the old signatures will be removed, and the
"implements" declarations will be updated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384907 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 20:17:00 +00:00
Luc Maisonobe
8bac3361f2
Fixed too large memory consumption in DSCompiler.
...
Prior to this correction, when at one point in a program a user needed a
derivative with 1 parameter and order 5, and at another point needed a
derivative with 30 parameters and order 1, all DSCompilers from 1x1 to
30x5 were created. As the compilation rules for 30 parameters and 5
order are huge, this failed with memory heap errors after several
gigabytes were consumed.
The fix is to simply build the necessary compilers, and let the array
contain null references for the compilers never used (these null
references will be populated later if the user ask for some intermediate
value that need them, of course).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384905 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 20:16:05 +00:00
Sebastien Brisard
1c032ee454
- Populated throws clause of FieldVector, ArrayFieldVector, SparseFieldVector (MATH-854).
...
- Added some missing precondition checks.
- Corrected some mistakes in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384654 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 06:42:06 +00:00
Sebastien Brisard
aa0b1cc788
MATH-854: in FieldVector and ArrayFieldVector, reverted to r1383770.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384471 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 19:00:51 +00:00
Thomas Neidhart
406a6ae49d
Fixed typo and formatting in changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384454 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:21:05 +00:00
Thomas Neidhart
70b769ec7f
Fixed typo in changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:18:36 +00:00
Luc Maisonobe
621bbb8fc7
Fixed an error in rectangular Cholesky decomposition.
...
JIRA: MATH-789
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384363 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 15:13:03 +00:00
Sebastien Brisard
8469bc496c
MATH-854: document all exceptions in ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 06:11:05 +00:00
Sebastien Brisard
10af7e2b2f
MATH-854: in interface FieldVector, some more exceptions are *documented* (as recommendations), but not *specified*.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384211 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 06:10:06 +00:00
Sebastien Brisard
443f412728
MATH-854: in interface FieldVector, replaced throws statements with javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384082 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 18:37:46 +00:00
Luc Maisonobe
84f92e1928
Added a wrapper class to compute Jacobian from differentiable function.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383886 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 11:23:23 +00:00
Luc Maisonobe
88678b58a4
Added a wrapper class to compute gradient from differentiable function.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383885 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 11:22:56 +00:00
Luc Maisonobe
6fe3ae0e6c
Deprecated DifferentiableUnivariateMatrixFunction interface.
...
This interface is in fact never used in the library...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383854 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:55:32 +00:00
Luc Maisonobe
d2f23bba39
Fixed typo in interface name.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383853 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:55:13 +00:00
Luc Maisonobe
b8de2704ac
Deprecated DifferentiableUnivariateVectorFunction.
...
This interface is in fact never used in the library...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383852 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:54:40 +00:00
Luc Maisonobe
85bab3ba61
Deprecated DifferentiableUnivariateFunction.
...
The interface and its implementations should be removed for 4.0. The
remaining uses in the library are only there for compatibility.
Everything else now use the new UnivariateDifferentiableFunction
interface and DerivativeStructure, which allow both arbitrary
differentiation order and arbitrary number of free parameters.
The next step for 3.1 is to replace the multidimensional functions (i.e.
multivariate functions, vector valued functions and matrix valued
functions).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383845 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:34:10 +00:00
Sebastien Brisard
47e5bb380e
Removed LocalizedFormats.ENTRY previously introduced in r1383747, as LocalizedFormats.INDEX will do nicely.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383770 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 04:43:38 +00:00
Sebastien Brisard
f0921e844d
MATH-854: fill the "throws" clause of FieldVector, ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383760 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 04:27:47 +00:00
Sebastien Brisard
b30425df87
Added new localized error message "entry {0}" to signal null entries in FieldVectors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383747 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 03:46:31 +00:00
Sebastien Brisard
ffe65f8eac
MATH-854: fill the "throws" clause of RealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383743 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 03:18:46 +00:00
Luc Maisonobe
cc22b4d09b
Added arbitrary differentiation order for Hermite interpolator.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 15:33:37 +00:00
Luc Maisonobe
76e8646b95
Added interfaces for differentiable multidimensional functions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383450 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 15:33:10 +00:00
Luc Maisonobe
f4cd0eec56
Renamed UnivariateDifferentiable into UnivariateDifferentiableFunction.
...
The "Function" part of the name was forgotten when this new interface
was created a few weeks ago, for replacing the older
DifferentiableUnivariateFunction.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383441 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 14:56:39 +00:00
Luc Maisonobe
226145f46d
Added arbitrary order derivative for polynomials in Newton form.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383437 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 14:42:44 +00:00
Luc Maisonobe
e0557c2c89
added a few UML diagrams.
...
The diagrams are not used in the documentation yet, they are only kept for reference and may be removed later.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383287 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 08:37:52 +00:00
Sebastien Brisard
5998035a9f
MATH-854: fill the "throws" clause of ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383052 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 19:05:54 +00:00
Sebastien Brisard
a70cb1668e
Removed unused @throws Javadoc tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382998 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 17:42:53 +00:00
Sebastien Brisard
7146906696
MATH-854: fill the "throws" clause of FieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382993 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 17:31:51 +00:00
Luc Maisonobe
22bcab04fe
Updated throws declarations for transform package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382906 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:48:03 +00:00
Luc Maisonobe
b883dcbc08
Updated throws declaration for random package (and part of
...
distribution).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382904 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:47:45 +00:00
Luc Maisonobe
0955f5db17
Replaced factory using Object with type-safe version.
...
Only two types of adapters were used: double array and stream, in a
private internal factory. This has been suppressed so each adapter is
bioth type safe and returns only the exceptions it can trigger.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382902 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:47:19 +00:00
Luc Maisonobe
e46f4c0c05
Removed too aggressive checks for impossible errors.
...
The checks were added recently as part of throws declaration updates. In
theses cases, the exception cannot be triggered. No throws declarations
are needed and in fact wrapping the impossible exceptions in
MathInternalError is simply too much.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382887 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:37:27 +00:00
Phil Steitz
9e69a34008
Added missing throws declarations. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382537 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 16:43:27 +00:00
Gilles Sadowski
f947c72da7
MATH-855
...
In case of tie, return the "oldest" point.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382441 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 10:40:55 +00:00
Phil Steitz
9e2e73e4ec
Added missing throws declarations, suppressed warnings. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382389 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 01:47:34 +00:00