Phil Steitz
99155e564c
Muted pmd for empty catch blocks.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422350 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 20:47:47 +00:00
Phil Steitz
0d31f27386
Made default file encoding explicit (FindBugs).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422338 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 20:05:51 +00:00
Phil Steitz
623963275a
Javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422337 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 20:04:47 +00:00
Phil Steitz
7d61c9ada9
Added sync to compute method.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422321 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 19:24:04 +00:00
Phil Steitz
1a77fde3cd
Added missing @since tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422313 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 18:53:41 +00:00
Luc Maisonobe
7fc64f6dcb
Added documentation for differentiation in user guide.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422251 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 14:20:12 +00:00
Gilles Sadowski
0017c17836
MATH-874
...
Javadoc (deprecation tag).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422230 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 12:11:13 +00:00
Gilles Sadowski
d868dbf47d
MATH-874
...
Added "@Deprecated" annotation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422223 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 11:32:35 +00:00
Luc Maisonobe
389aa0081a
Fixed a missing element in the solvers table (user-guide).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422214 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 10:23:18 +00:00
Phil Steitz
23400334ee
Added missing @since tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422195 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 06:45:18 +00:00
Gilles Sadowski
f235e1c1d0
Replaced deprecated "RandomDataImpl" with "RandomDataGenerator".
...
Added private constructor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422123 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 22:12:34 +00:00
Gilles Sadowski
1f7c434521
Deprecation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422107 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 21:47:21 +00:00
Phil Steitz
2f33283981
Reverted incompatible changes made in r1420006.
...
Fixed javadoc error in EmpiricalDistribution class javadoc.
Deprecated constructors taking RandomDataImpl instances in EmpiricalDistribution, ValueServer. These constructors predate RandomGenerator, which should be used directly as the source of random data for these classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421968 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 16:28:23 +00:00
Luc Maisonobe
610b5d26c9
Fixed PMD warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421949 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 15:53:32 +00:00
Gilles Sadowski
2bdc9d4548
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421917 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 15:05:18 +00:00
Gilles Sadowski
6f806cfe41
MATH-916
...
Restore backwards-compatibility (for release 3.1).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421911 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 14:59:44 +00:00
Gilles Sadowski
29a297de44
MATH-915
...
Restore backwards-compatibility (for release 3.1).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421910 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 14:57:56 +00:00
Thomas Neidhart
7521e5af34
Fix PMD warnings by suppressing or removing unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421448 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 19:45:57 +00:00
Gilles Sadowski
96f6fd10b6
Removed inconsistent null checks (reported by FindBugs).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421290 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 13:39:04 +00:00
Gilles Sadowski
77910da210
MATH-914
...
Markers to indicate the bug location.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421287 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 13:29:56 +00:00
Gilles Sadowski
3f7e2e38ce
Unused argument (found by PMD).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421280 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 13:07:57 +00:00
Gilles Sadowski
28c30e9190
Unused argument (found by PMD).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421263 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 12:47:07 +00:00
Gilles Sadowski
931e594d11
Removed unneeded "import" statements.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421260 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 12:41:54 +00:00
Gilles Sadowski
f25ba664ed
Fixed bug found by PMD.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421249 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 12:32:03 +00:00
Gilles Sadowski
4a75bce80e
MATH-874
...
Moved "GoalType" and "ObjectiveFunction" to package
"o.a.c.m.optim.nonlinear.scalar".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421054 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 00:54:05 +00:00
Gilles Sadowski
889c2d9e19
MATH-874
...
Data files needed by some unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420762 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 15:27:35 +00:00
Gilles Sadowski
4a007942c4
Fixed wrong position of package description.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420705 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 14:35:37 +00:00
Gilles Sadowski
5968be0da0
MATH-874
...
Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420693 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 14:18:22 +00:00
Gilles Sadowski
7ee7843ffe
MATH-874
...
Refactored of the contents of package "o.a.c.m.optimization"
into the new "o.a.c.m.optim" and "o.a.c.m.fitting" packages.
* All deprecated classes/fields/methods have been removed in the
replacement packages.
* Simplified API: a single "optimize(OptimizationData... data)"
for all optimizer types.
* Simplified class hierarchy, merged interfaces and abstract
classes, only base classes are generic.
* The new classes do not use the "DerivativeStructure" type.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420684 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 14:10:38 +00:00
Gilles Sadowski
63623c9236
Fixed "Clirr" error.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420669 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 13:40:35 +00:00
Gilles Sadowski
c5bb8dcf03
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420666 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 13:33:20 +00:00
Phil Steitz
6c048df147
Fixed javadoc error, replaced depreacated class.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420006 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 06:10:08 +00:00
Phil Steitz
905aaf4567
Added RealDistribution methods to EmpiricalDistribution. JIRA: MATH-672.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1420000 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 05:36:06 +00:00
Sebastien Brisard
95fc482c33
Javadoc: warning about private methods being accessed through reflection in
...
unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416796 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 06:41:57 +00:00
Luc Maisonobe
8f98daf191
Added lower and upper boundaries to finite differences.
...
When a function is defined only on an interval, finite differences
should not attempt to compute sample points outside this interval. This
case is now detected properly and the sample is shifted if needed. This
may result in some loss of accuracy as the formula is not centered
anymore, but at least we should not get catastrophic errors or
exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416249 13f79535-47bb-0310-9956-ffa450edef68
2012-12-02 20:23:49 +00:00
Thomas Neidhart
0fde6532f1
Removed unused variables.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416204 13f79535-47bb-0310-9956-ffa450edef68
2012-12-02 17:43:39 +00:00
Sebastien Brisard
ce2502a522
Replaced calls to deprecated Beta.logBeta(double, double, double, int) with
...
calls to Beta.logBeta(double, double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416017 13f79535-47bb-0310-9956-ffa450edef68
2012-12-01 16:24:33 +00:00
Sebastien Brisard
141f4b8163
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1416010 13f79535-47bb-0310-9956-ffa450edef68
2012-12-01 16:08:12 +00:00
Sebastien Brisard
492f3de982
Description of upcoming version 3.1 now reports that the accuracy of Beta has
...
been improved.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415973 13f79535-47bb-0310-9956-ffa450edef68
2012-12-01 10:36:26 +00:00
Sebastien Brisard
efe3c99df1
In the users guide, updated the accuracy of logBeta.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415971 13f79535-47bb-0310-9956-ffa450edef68
2012-12-01 10:32:30 +00:00
Gilles Sadowski
de04366617
MATH-874
...
Deprecation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415872 13f79535-47bb-0310-9956-ffa450edef68
2012-11-30 22:17:07 +00:00
Sebastien Brisard
f64b6a906b
MATH-738: New implementation of Beta.logBeta(double, double), based on the NSWC
...
library of mathematical functions.
- increased accuracy
- deprecation of Beta.logBeta(double, double, double, int) as the new
implementation is no longer iterative.
- some private methods are tested through reflection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415853 13f79535-47bb-0310-9956-ffa450edef68
2012-11-30 21:02:23 +00:00
Gilles Sadowski
949ba2c539
MATH-874
...
Deprecation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415454 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 23:26:00 +00:00
Gilles Sadowski
ebae96965e
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415158 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 13:27:10 +00:00
Gilles Sadowski
2855cc309e
Annotation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415149 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 13:12:55 +00:00
Gilles Sadowski
4333489f68
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415000 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 00:00:51 +00:00
Gilles Sadowski
d7f652b816
MATH-897
...
Updated "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414848 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 18:13:32 +00:00
Sebastien Brisard
647b3b4dde
Checkstyle: removed exception from signature, as this exception will never be raised.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414536 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:51:27 +00:00
Sebastien Brisard
6d9e72505e
Checkstyle.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414535 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:48:50 +00:00
Sebastien Brisard
a869a06efa
In GammaTest: restored method checkRelativeError which was inadvertently removed in r1414527.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414531 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:39:39 +00:00
Sebastien Brisard
87d61c2a51
In changes.xml: Beta has not been changed yet.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414529 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:33:36 +00:00
Sebastien Brisard
c080fd3c18
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414528 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:30:38 +00:00
Sebastien Brisard
c1a2c4081c
In class Gamma, removed auxiliary functions logGammaSum and
...
logGammaMinusLogGammaSum, as they are not ready to be included in version 3.1
of Commons-Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414527 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:27:27 +00:00
Sebastien Brisard
2fde62aff6
In class Beta, removed auxiliary function bcorr, as it is not ready to be
...
included in version 3.1 of Commons-Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414525 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:24:12 +00:00
Gilles Sadowski
2786244d09
Contents for the release notes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414470 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 23:43:06 +00:00
Gilles Sadowski
d580fb2ca8
MATH-895
...
Replaced deprecated method with alternative from "MathArrays".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414441 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:27:17 +00:00
Gilles Sadowski
bc69c0088d
MATH-910
...
Element-by-element basic operations on arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414435 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:19:36 +00:00
Gilles Sadowski
6844aba987
MATH-904.
...
Fixed wrong assumption in "pow" method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413916 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 23:02:29 +00:00
Sebastien Brisard
4673043763
In classes o.a.c.m3.special.Gamma and o.a.c.m3.special.Beta, made some
...
auxiliary functions package private. It is very unlikely that these functions
should be used outside this package, and if necessary, it will always be
possible to increase their visibility (while the reverse would break
compatibility).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413807 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 19:55:07 +00:00
Sebastien Brisard
fec7740958
MATH-849: Gamma.gamma(double) returns NaN if called on negative integer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413802 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 19:45:52 +00:00
Gilles Sadowski
f348a29e5f
MATH-902
...
Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413695 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 16:01:55 +00:00
Gilles Sadowski
dfc6a5c215
MATH-905
...
Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413604 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 13:29:18 +00:00
Gilles Sadowski
46ed0af1c2
MATH-905
...
Avoid overflow on the whole range covered by the equivalent functions in
the standard "Math" class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413600 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 13:25:27 +00:00
Gilles Sadowski
9e75d6faa9
MATH-908
...
Added constructor.
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413594 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 13:16:39 +00:00
Sebastien Brisard
4d035b59a1
In class Beta, wrote DEFAULT_EPSILON in a less error-prone way (1E-14 instead
...
of 10e-15).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413555 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 11:22:02 +00:00
Thomas Neidhart
71e11fc375
Simplify hashCode/equals/toString methods by using appropriate methods from java.util.Arrays, similar to EuclideanDoublePoint.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413424 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 21:23:31 +00:00
Sebastien Brisard
17c50866e0
MATH-738: implementation of Beta.bcorr(double, double), an auxiliary function
...
for the computation of Beta.beta(double, double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413369 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 16:44:39 +00:00
Sebastien Brisard
e6dc431a6a
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413368 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 16:25:29 +00:00
Sebastien Brisard
7cf359aab1
Further unit tests of Gamma.logGammaSum(double, double): preconditions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413367 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 16:05:57 +00:00
Sebastien Brisard
27178b80c4
MATH-738: in class o.a.c.m3.special.Gamma, implemented function
...
logGammaMinusLogGammaSum(double, double),
which computes accurately log(Gamma(b)) - log(Gamma(a + b))
for a >= 0 and b >= 8. Based on the NSWC library.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413366 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 16:00:43 +00:00
Sebastien Brisard
1d25ac89e3
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413361 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 15:20:22 +00:00
Sebastien Brisard
87a2928ff5
MATH-849: updated changes.xml
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413245 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 19:12:14 +00:00
Gilles Sadowski
eb889c8f9f
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413186 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 13:47:59 +00:00
Gilles Sadowski
9a9b2d3153
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413172 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 11:15:12 +00:00
Gilles Sadowski
ec46f40b0b
MATH-902
...
Allow stopping condition based on the number of iterations (for "univariate"
optimizers).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413171 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 11:11:10 +00:00
Phil Steitz
53f44454dc
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413131 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 04:44:02 +00:00
Phil Steitz
9bcd29de47
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413127 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 04:37:30 +00:00
Phil Steitz
a30bef00fb
Fixed javadoc link.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413126 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 04:24:26 +00:00
Phil Steitz
a42825bef5
Fixed javadoc tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413125 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 04:18:00 +00:00
Phil Steitz
15560aaba5
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413122 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 03:51:40 +00:00
Gilles Sadowski
3467a4bcd3
Using methods from JDK.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413096 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 22:34:05 +00:00
Gilles Sadowski
1f51afc5a5
MATH-908
...
Added constructor to enable independent settings of the line search
tolerances. Updated unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413088 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 22:10:55 +00:00
Gilles Sadowski
04c63b1630
MATH-902
...
Fixed Javadoc. Added unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1412713 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 23:17:49 +00:00
Gilles Sadowski
ccf9403db5
MATH-902
...
"changes.xml" updated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1412586 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 15:25:56 +00:00
Thomas Neidhart
0f6f0d8526
Remove unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1412245 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 19:38:02 +00:00
Gilles Sadowski
0f8b842020
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1412070 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 11:49:00 +00:00
Thomas Neidhart
0073facaf9
[MATH-906] Use NaNStrategy.FAILED as default in NaturalRanking.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411880 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 21:13:54 +00:00
Gilles Sadowski
4577812519
Unnecessary code removed.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411809 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 19:33:17 +00:00
Gilles Sadowski
8da1dede24
MATH-902
...
Added a constructor in the custom checkers that enables normal termination
of an optimization algorithm (i.e. returning the curent best point after a
selected number of iterations have been performed).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411807 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 19:29:16 +00:00
Gilles Sadowski
a20e951321
License text.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411806 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 19:23:02 +00:00
Sebastien Brisard
cea5afed35
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411388 13f79535-47bb-0310-9956-ffa450edef68
2012-11-19 20:12:57 +00:00
Sebastien Brisard
ad7ba6374d
In class Gamma, implementation of (a, b) -> log(Gamma(a + b)). See MATH-738.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411387 13f79535-47bb-0310-9956-ffa450edef68
2012-11-19 20:07:25 +00:00
Gilles Sadowski
ce126bdbc6
MATH-899
...
Fixed copy/paste bug.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411009 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 22:48:05 +00:00
Gilles Sadowski
514492efd4
MATH-894
...
Deprecation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410997 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 22:04:54 +00:00
Gilles Sadowski
cca05f0c71
MATH-899
...
Added wrapper class that allows thread-safe usage of any "RandomGenerator".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410990 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 21:00:34 +00:00
Thomas Neidhart
2a75c2afdc
[MATH-897] Add DBSCAN clustering algorithm, thanks to Reid Hochstedler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410882 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 12:49:49 +00:00
Gilles Sadowski
f14e5102f2
MATH-894
...
Reflect type change in "hashCode".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410660 13f79535-47bb-0310-9956-ffa450edef68
2012-11-17 01:20:08 +00:00
Gilles Sadowski
76ca9329ca
MATH-894
...
Deprecated setter for fields that should be declared as "final".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410658 13f79535-47bb-0310-9956-ffa450edef68
2012-11-17 01:13:37 +00:00
Gilles Sadowski
2536920734
MATH-894
...
Name change ("contractionCriteria" -> "contractionCriterion").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410657 13f79535-47bb-0310-9956-ffa450edef68
2012-11-17 01:08:49 +00:00
Gilles Sadowski
4cd203f41e
MATH-894
...
Changed type of "expansionFactor" and "contractionCriteria" from
"float" to "double" and deprecated methods and constructors that
use "float".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410469 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 16:59:16 +00:00
Gilles Sadowski
5118f5376d
MATH-900
...
License text moved to "LICENSE.txt".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410460 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 16:49:38 +00:00
Gilles Sadowski
23166ac9c1
MATH-900
...
License information moved to "LICENSE.txt".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410433 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 16:23:39 +00:00
Luc Maisonobe
d3811b134b
Replaced a character encoded in isolatin-1 in Javadoc.
...
As per current discussions on the dev list, we should go to UTF-8
entirely. For now, I have just used plain old html entities until we
make sure everything can be generated properly from UTF-8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410238 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 07:58:49 +00:00
Gilles Sadowski
166cfce47f
By having "UnivariateStatistic" extend the new "MathArrays.Function"
...
interface, subclassing "ResizableDoubleArray" is not necessary to achieve
the required functionality (see MATH-894).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410126 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:32:18 +00:00
Gilles Sadowski
b7555df622
MATH-894
...
Introducing new interface for operating on a "double[]" (added in
the "MathArrays" class). Using this interface, operations can be
performed on the internal array of a "ResizeableDoubleArray" through
a new "compute" method. Thanks to Phil Steitz.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410121 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:18:30 +00:00
Gilles Sadowski
4870a5d99d
MATH-894
...
Removed "initialCapacity" field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410109 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 23:35:56 +00:00
Gilles Sadowski
f2235a59a3
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409545 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 23:25:05 +00:00
Gilles Sadowski
b06f4a4ac6
Replaced calls to deprecated methods in "ResizeableDoubleArray" (see
...
MATH-894). Created subclass of "ResizeableDoubleArray" in order to
access to the object's internal array.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409509 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 22:55:07 +00:00
Gilles Sadowski
615661c90f
MATH-894
...
Added new "protected" (and not "synchronized") methods to allow access to
the internal array for subclasses only.
Javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409475 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 22:13:54 +00:00
Thomas Neidhart
586a9603ef
Reduce sleep time in unit test to prevent possible race condition.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409352 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 20:09:51 +00:00
Sebastien Brisard
245fbc7d13
New values of the accuracy of Beta.logBeta(double, double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409108 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 07:42:39 +00:00
Sebastien Brisard
3c8ba5e630
Further accuracy assessments of Beta.logBeta(double, double)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409107 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 07:41:29 +00:00
Sebastien Brisard
4cb2a39629
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409091 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 06:18:40 +00:00
Gilles Sadowski
a7660837c3
MATH-894
...
Made the doc reflect the new behaviour of "clear()".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408833 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 17:03:47 +00:00
Gilles Sadowski
32d47dd087
Use constructor chaining (in place of duplicate code).
...
Fixed Javadoc typos (expansion factor and contraction criterion default
values).
Javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408830 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 16:53:13 +00:00
Gilles Sadowski
ac5efee04b
Avoid duplicate computation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408805 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 15:55:26 +00:00
Gilles Sadowski
4b60e4262d
MATH-894
...
Added new enum type to replace the integers used to represent the
expansion mode. Deprecated methods and contructor that use the old
representation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408797 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 15:50:24 +00:00
Gilles Sadowski
674f552985
MATH-894
...
Removed the reallocation in method "clear()".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408735 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 14:13:46 +00:00
Gilles Sadowski
593be67923
MATH-894
...
Deprecated methods that exposed internal state.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408723 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 13:55:45 +00:00
Gilles Sadowski
b324690406
Formatting, Javadoc, "final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408340 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 16:03:36 +00:00
Phil Steitz
16926f74f1
Consistently use G for G Test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408281 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:37:20 +00:00
Gilles Sadowski
de9e8b8c78
MATH-894
...
New method "getCapacity". Deprecated "getInternalLength".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408280 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:33:26 +00:00
Gilles Sadowski
6080bc88a8
MATH-887
...
Changed "computeWeightedJacobian" to return exactly that, instead of the
weighted Jacobian matrix multiplied by -1. Changed subclasses accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408250 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 11:36:40 +00:00
Gilles Sadowski
00d309c45d
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408246 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 11:27:31 +00:00
Phil Steitz
368050bbe6
Added G-test. JIRA: MATH-878.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408174 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:33:11 +00:00
Phil Steitz
c49c8c6667
Added G-test to TestUtils. JIRA: MATH-878
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408173 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:32:02 +00:00
Phil Steitz
f1dac3079a
Changed G-test method names to follow conventions in the inference package. JIRA: MATH-878.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408172 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:29:46 +00:00
Thomas Neidhart
16acabd53f
[MATH-893] Add new NaNStrategy FAILED, thanks to Patrick Meyer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407852 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 17:14:51 +00:00
Thomas Neidhart
def7381851
Fix typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407848 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:58:59 +00:00
Thomas Neidhart
ff96ac9292
[MATH-892] Add new ctor to SpearmansCorrelation, reordering of ctors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407847 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:51:49 +00:00
Sebastien Brisard
a170601629
In the users guide for special functions
...
- accuracy of current implementation of Beta.logBeta
- standard deviation of error (in ulps) is now provided for all special
functions that have already been evaluated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407594 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 19:03:28 +00:00
Sebastien Brisard
6687706d44
Script files for the validation of beta.logBeta(double, double)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407592 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 18:59:21 +00:00
Gilles Sadowski
b76ce72cf0
MATH-887
...
Removed usage of "protected" fields "cols" and "rows".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407501 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 15:48:56 +00:00
Gilles Sadowski
4ece62e101
MATH-894
...
Removed call to "contract" in "addElement".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407485 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 15:15:11 +00:00
Gilles Sadowski
3456d2a12a
MATH-887
...
Renamed "computeJacobian" to "computeWeightedJacobian" to relect what is
actually done.
Made "setCost" a "protected" method (as it should only be modified according
to the optimum found by the subclass's algorithm (defined in "doOptimize()").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407478 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 14:57:10 +00:00
Gilles Sadowski
ca08d0e8b1
MATH-887
...
In "LevenbergMarquardtOptimizer", removed usage of deprecated fields and
methods from its base class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407467 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 14:30:49 +00:00
Sebastien Brisard
a8045be9dd
In shell script RealFunctionValidation.sh, pass command line argument to java
...
app.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407384 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:50:04 +00:00
Sebastien Brisard
e54d3237a3
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407382 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:47:38 +00:00
Sebastien Brisard
a6f3c8e178
Ignore *.dat files, which might be generated by the *.mac Maxima scripts.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407378 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:29:00 +00:00
Sebastien Brisard
d177a29813
Properties files to be used with RealFunctionValidation, for functions
...
Gamma.logGamma and Gamma.gamma.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407377 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:24:16 +00:00
Sebastien Brisard
b04b10ca6e
Small java application for the accuracy assessment of implementations of real
...
functions in Commons Math. The accuracy is assessed through comparison with
reference values computed with multi-precision softwares.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407376 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:13:18 +00:00
Gilles Sadowski
37791912c6
"final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407037 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 12:59:07 +00:00
Gilles Sadowski
2ce650bf54
MATH-887
...
Made "GaussNewtonOptimizer" use the new methods in base class
"AbstractLeastSquaresOptimizer" instead of modifying the (now
deprecated) protected fields.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407034 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 12:48:54 +00:00
Gilles Sadowski
54cfc6ce0a
MATH-887
...
Deprecated "protected" fields.
Created new methods (that take arguments and return a value) to
replace those that operate on protected fields.
Removed call to deprecated methods in unit tests.
Added public method "setCost" to replace the direct assignment to
a protected field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407010 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 10:50:34 +00:00
Gilles Sadowski
b65cad05b9
MATH-887
...
First steps to enhance encapsulation (goal is to remove the "protected"
fields): used new API (MATH-874).
Replaced explicit loops with matrix operations.
Disabled a unit test that does not pass anymore.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1406010 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 23:41:05 +00:00
Gilles Sadowski
568404b6eb
Typos.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1406008 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 23:32:15 +00:00
Luc Maisonobe
c61b08e546
Fixed naming inconsistencies between Interval and IntervalsSet classes.
...
JIRA: MATH-890
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405711 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:43:38 +00:00
Luc Maisonobe
2a41e40c15
Added a method to check points in the Interval class.
...
JIRA: MATH-889
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405706 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:00:19 +00:00
Phil Steitz
387e7f9fa9
Reverting changes inadvertently committed in r1405634.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405635 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:56:37 +00:00
Phil Steitz
6e40b488fd
Javadoc fix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405634 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:51:21 +00:00
Phil Steitz
0987ae5a20
Added G-test statistics. JIRA: MATH-878. Thanks to Radoslav Tsvetkov and Ted Dunning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405620 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 19:32:35 +00:00
Phil Steitz
1cfa9491a2
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405409 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 19:46:41 +00:00
Gilles Sadowski
18360735db
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1404085 13f79535-47bb-0310-9956-ffa450edef68
2012-10-31 10:45:09 +00:00
Luc Maisonobe
d4b31ce8ff
streamlined deserialization of DerivativeStructure
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403648 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 09:52:09 +00:00
Gilles Sadowski
ea8e5c488d
Use the "isSymmetric" utility method from "MatrixUtils" (copied from
...
"EigenDecomposition" in MATH-884).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403591 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:38:44 +00:00
Gilles Sadowski
06c63da6c7
MATH-883
...
Added "getSquareRoot()" method. Implementation only supports symmetric,
diagonalizable matrices.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403590 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:29:06 +00:00
Gilles Sadowski
4d12f0ca68
MATH-884
...
Added methods "isSymmetric" and "checkSymmetric".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403587 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:21:20 +00:00
Phil Steitz
e0f7ce9c7c
Moved array argument validation methods from ChiSquareTest to MathArrays. JIRA: MATH-885.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403169 13f79535-47bb-0310-9956-ffa450edef68
2012-10-29 04:06:14 +00:00
Thomas Neidhart
6f50c9e55d
Completed javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402800 13f79535-47bb-0310-9956-ffa450edef68
2012-10-27 14:31:26 +00:00
Gilles Sadowski
41aa1c40fd
Removed quasi-duplicate code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402716 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 23:37:32 +00:00
Gilles Sadowski
4fe86d82eb
MATH-874
...
I forgot to "svn add" classes (in revision 1402607).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402611 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 18:27:34 +00:00
Gilles Sadowski
d0d4760c97
MATH-874
...
First steps to upgrade the API of the classes in "o.a.c.m.optimization.general".
Please note the introduction of a "Weight" matrix (whereas the current code
assumes that the weights are given as an array).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402607 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 18:19:40 +00:00
Gilles Sadowski
2796e77e2e
MATH-874
...
Reduced number of overridden public "optimize" methods (replaced by protected
"optimizeInternal"): whenever the code is ready for 4.0, only the base class's
"optimize" method should define the public API (subclass specifics are handled
in overridden "optimizeInternal" which must call the base class's version to
handle the common setup).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401928 13f79535-47bb-0310-9956-ffa450edef68
2012-10-25 00:20:24 +00:00
Gilles Sadowski
8964c7aa09
Updated "changes" file.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401906 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 22:38:25 +00:00
Gilles Sadowski
e0426dfbfb
MATH-816
...
Using different seeds for the component distributions to avoid getting
the same sequence of random numbers for all of them. Update to the
"testSampling" unit test contributed by Jared Becksfort.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401894 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 21:27:44 +00:00
Luc Maisonobe
f5765cf99d
Use the new differentation API for all optimizers.
...
The older API is still supported as of version 3.1, but is implemented
by wrapping the user function into the new API and then calling the new
code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401838 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 19:40:08 +00:00
Luc Maisonobe
7b5a64c0bb
Added converters for multivariate functions.
...
The converters allow to convert back and forth between the older
and the newer differentiation API. They are considered temporary methods
for version 3.1 and will be removed in 4.0 as only the new API will
remain.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 19:39:45 +00:00
Thomas Neidhart
3bae991455
Added missing closing action tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401451 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 20:35:04 +00:00
Thomas Neidhart
477104bd09
Fix spelling.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401416 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 19:30:09 +00:00
Sebastien Brisard
9dffcfd3be
Maxima scripts to generate reference values for the gamma and logGamma
...
functions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401171 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 06:04:09 +00:00
Luc Maisonobe
6d5763c539
Removed unused exception.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401034 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 19:32:03 +00:00
Luc Maisonobe
2a9cbbab46
Finalized fix for MATH-880.
...
This version should be much more robust on polygons computation than the
earlier ones. Note that the hyperplaneThickness parameter is a key
tuning parameter in difficult cases like the one involved in the issue.
As shown in the corresponding unit test, the value had to be raised to
1.0e-8 in order for the test to pass correctly.
JIRA: MATH-880
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401022 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 19:21:36 +00:00
Thomas Neidhart
c2e855d6a0
[MATH-759] add resolution to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401000 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 18:47:33 +00:00
Gilles Sadowski
3b6bbf6d2c
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400881 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 13:57:26 +00:00
Gilles Sadowski
7096dabffa
MATH-854
...
Fill "throw" clauses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400850 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 11:57:17 +00:00
Luc Maisonobe
b25f448d2f
Improved polygons creation with a numerically more robust constructor.
...
This is only a partial fix for issue 880 because there are still some
glitches in the first polygon involved in the issue.
JIRA: MATH-880
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400717 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 20:08:32 +00:00
Thomas Neidhart
231b9a8905
Fix special characters in changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400685 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:43:08 +00:00
Thomas Neidhart
1d02ff125d
[MATH-474] Added Frequency#merge method, thanks to patch from Dan Checkoway.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400683 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:33:37 +00:00
Thomas Neidhart
ec6f1c8270
Small fixes of javadoc @throws tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400676 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:41:38 +00:00
Thomas Neidhart
8bada78845
Removed unneeded import in package-info.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400675 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:34:40 +00:00
Thomas Neidhart
bea6d09158
Fix checkstyle warnings, added missing javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400673 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:32:30 +00:00
Thomas Neidhart
5b9302d5be
[MATH-778] Allow unlimited input values for Dfp#multiply.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400671 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:22:50 +00:00
Gilles Sadowski
0912bac520
MATH-868
...
MATH-879
"lambda" and "inputSigma" should be passed to "optimize" as arguments of
type "OptimizationData". Deprecated constructors. Updated unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400108 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 14:20:16 +00:00
Gilles Sadowski
ea138c2da2
MATH-816
...
Mixture model distribution. Original code contributed by Jared Becksfort,
committed with changes as discussed on the JIRA page.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400040 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 11:00:53 +00:00
Gilles Sadowski
bdd5b45cf7
MATH-815
...
Added method that was missing in the original commit: "getDimensions()",
renamed to "getDimension()".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400017 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 09:55:01 +00:00
Gilles Sadowski
a355d8c20a
MATH-881
...
Removed useless method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400010 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 09:30:44 +00:00
Gilles Sadowski
4a3a3eba60
MATH-881
...
Removed meaningless properties for multivariate distributions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1399864 13f79535-47bb-0310-9956-ffa450edef68
2012-10-18 21:26:13 +00:00
Gilles Sadowski
41f74ba651
Inner class should have been "static".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1399433 13f79535-47bb-0310-9956-ffa450edef68
2012-10-17 21:09:27 +00:00
Gilles Sadowski
3a874d8f01
Formatting.
...
"final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398547 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 22:30:30 +00:00
Gilles Sadowski
ecc9690e26
Formatting.
...
Removed unnecessary decimal point on constants, and added explicit cast where
necessary.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398297 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 14:09:32 +00:00
Gilles Sadowski
ac094067cf
MATH-873
...
Removed usage of "maximum number of evaluations" in a place where it altered
the algorithm's core behaviour (whereas it should only serve as a processing
time limit).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398284 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 13:33:43 +00:00
Gilles Sadowski
91011db79d
MATH-872
...
Sigma values expressed as a kind of "OptimizationData". Deprecated
constructors that were passed an "inputSigma" argument.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398275 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 13:12:15 +00:00
Gilles Sadowski
652c6220cb
MATH-874
...
Simple bounds expressed as a kind of "0ptimizationData".
The specification of simple bounds is handled in "BaseAbstractMultivariateOptimizer";
hence "BaseAbstractMultivariateSimpleBoundsOptimizer" is deprecated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398263 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 12:16:53 +00:00
Gilles Sadowski
2b40d7c36b
MATH-874
...
New API allows to pass the simplex as an argument to "optimize".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397759 13f79535-47bb-0310-9956-ffa450edef68
2012-10-13 01:12:58 +00:00
Gilles Sadowski
8bc689a30c
MATH-874
...
New "optimize" method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397758 13f79535-47bb-0310-9956-ffa450edef68
2012-10-13 01:09:02 +00:00
Gilles Sadowski
91be760415
Replaced bit operator with logical operator.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397106 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 15:18:07 +00:00
Gilles Sadowski
d1ea9a6fb7
Javadoc. [After the MATH-867 fix, this warning is obsolete.]
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395949 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:45:16 +00:00
Luc Maisonobe
4b7c9c9408
Fixed javadoc warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395937 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:04:36 +00:00
Sebastien Brisard
37f8de9542
MATH-875: deprecated sparseIterator() in the RealVector hierarchy, and replaced its use with iterator().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395455 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:54:21 +00:00
Sebastien Brisard
d0e8a3587a
MATH-854: FieldMatrix.setSubMatrix does *not* throw NumberIsTooSmallException.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395453 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:19:50 +00:00
Sebastien Brisard
7cac883ba0
MATH-854: populated throws clause of BlockFieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395452 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:16:27 +00:00
Gilles Sadowski
3e10f8d478
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395181 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 22:17:12 +00:00
Phil Steitz
3084dd1e4a
Made file character set explicit and added file loading tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394882 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 01:05:06 +00:00
Phil Steitz
288558e48e
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394763 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:54:00 +00:00
Phil Steitz
955dda0258
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394761 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:52:15 +00:00
Gilles Sadowski
52990bc644
Read bound values from base class instead of duplicating the data.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393978 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 10:25:42 +00:00
Gilles Sadowski
e41cea1e33
Improved Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393641 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 18:06:33 +00:00
Thomas Neidhart
8eb3bbaca4
Remove trailing spaces, added missing javadoc tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393153 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 20:15:00 +00:00
Sebastien Brisard
3b5d0dd52c
User's guide for special functions now reports accuracy of
...
Gamma.gamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392751 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 06:09:03 +00:00
Sebastien Brisard
bb0827cc81
MATH-854: populated throws clause of Array2DRowFieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392748 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:35:59 +00:00
Sebastien Brisard
72051d7f6d
MATH-854: populated throws clause of AbstractFieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392743 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:21:51 +00:00
Sebastien Brisard
9f663a15e6
MATH-854: populated throws clause of FieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392742 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:14:38 +00:00
Sebastien Brisard
d685138370
User's guide for special functions now reports accuracy of
...
Gamma.logGamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392739 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:00:41 +00:00
Phil Steitz
57b0a07b9f
Final keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392358 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:41:55 +00:00
Phil Steitz
e055dcd21a
Added missing throws declarations. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392342 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:08:52 +00:00
Gilles Sadowski
bb60e51654
Indentation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392028 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 14:17:12 +00:00
Luc Maisonobe
df92c3b6f1
Added distance to point to 2D Line and Segment.
...
Patch provided by Curtis Jensen applied with minor modifications.
JIRA: MATH-641
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392022 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 13:22:28 +00:00
Gilles Sadowski
3246e42006
Update "changes.xml".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391928 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:14:32 +00:00
Gilles Sadowski
1ac0c79080
CheckStyle.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391927 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:03:30 +00:00
Gilles Sadowski
bfbb156dfb
MATH-867
...
Previous commit was missing a crucial modification (in the "repair" method),
an inconsistency which entailed the failing of some tests.
With that modification (thanks to Nikolaus Hansen), it was established that
the "encode" and "decode" steps were indeed useless. This commit thus removes
them, and all the code that was necessary only because of those two methods.
Finite and infinite can now be freely mixed.
Unit tests that depended on those limitations were also removed (thus also
the one that was added following MATH-865).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391908 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 22:18:18 +00:00
Gilles Sadowski
329cf9e8e6
MATH-867
...
Modified "encode" and "decode" methods. Unit test "testFitAccuracyDependsOnBoundary"
now passes and is thus enabled. Unit test "testConstrainedRosen" had to be modified
in order to not fail with the new code (starting point is set closer to the solution).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391840 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 16:58:18 +00:00
Gilles Sadowski
678377a1e8
MATH-867
...
Unit test showing the problem. It is disabled (with the "@Ignore" annotation)
because it fails with the current code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391477 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 14:06:19 +00:00
Luc Maisonobe
6129654bc2
Fixed some issues in nth root derivatives at 0.
...
The current behavior is correct with respect to infinities and NaN being
appropriately generated, but in some cases counter-intuitive.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 13:28:42 +00:00
Sebastien Brisard
e1ed0b96ba
User's Guide, Special Functions: changed the introduction, as special functions
...
should not be considered as a by-product of Commons-Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391304 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:25:06 +00:00
Sebastien Brisard
07f51c0dea
User's guide for special functions now uses the APT format, instead of the XDOC
...
format.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:14:10 +00:00
Sebastien Brisard
9462626718
MATH-854: filled the "throws" clause of BlockRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391160 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 18:42:45 +00:00
Sebastien Brisard
2a32964f25
Populated throws clause of OpenMapRealMatrix (MATH-854).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390842 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 05:04:10 +00:00
Sebastien Brisard
8708ef28f2
MATH-870: deprecated SparseFieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390832 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:54:04 +00:00
Sebastien Brisard
3a3fec3bb2
MATH-870: deprecated SparseRealMatrix and OpenMapRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390831 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:52:34 +00:00
Sebastien Brisard
9cf853b3fc
MATH-870: deprecated SparseFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390829 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:49:54 +00:00
Sebastien Brisard
b894782174
MATH-870: javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390828 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:48:44 +00:00
Sebastien Brisard
e2bab1ae13
MATH-870: deprecated OpenMapRealVector, SparseRealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390684 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 19:17:29 +00:00
Gilles Sadowski
dadeacc23e
MATH-853
...
New exception intended to become, as of release 4.0, the base class for
all CM exceptions (except "NullArgumentException").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390354 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 09:39:19 +00:00
Sebastien Brisard
2ff6587c4e
In AbstractRealMatrix, provided empty implementations to methods
...
- createMatrix(int, int),
- copy(),
- getEntry(int, int),
- setEntry(int, int).
This allows the use of the @Override tag in classes Array2DRowRealMatrix, BlockRealMatrix,
OpenMapRealMatrix with java 5.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 07:24:35 +00:00
Thomas Neidhart
774257e3a7
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389866 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:56:57 +00:00
Luc Maisonobe
282bb0eaa6
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389858 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:29:16 +00:00
Phil Steitz
ecd4748cdf
Added tests confirming exception behavior for regress(double[]).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389150 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 21:42:51 +00:00
Thomas Neidhart
ad252a8ca3
[MATH-848] Fixed Schur transformation for certain input matrices, changed index parameter names to indicate their purpose.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389129 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 19:34:02 +00:00
Gilles Sadowski
eda482d9f9
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388766 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 10:02:53 +00:00
Gilles Sadowski
f33f1fb501
MATH-860
...
Matrix "block inversion".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388555 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:41:06 +00:00
Gilles Sadowski
5144e1d878
MATH-865
...
Update "changes" file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:34:03 +00:00
Gilles Sadowski
b55e020684
MATH-865
...
Early detection that overflow will occur in the variables normalization
procedure ("encode" method). Warning mentioned in the documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388552 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:32:18 +00:00
Gilles Sadowski
abe53a537b
MATH-864
...
Fixed missing "repair" of a point that lies outside the boundaries. Thanks
to Frank Hessen for the report and for pinpointing the cause of the problem.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388517 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 14:17:37 +00:00
Gilles Sadowski
ce118ef14a
MATH-863
...
Patch provided by Julien Anxionnat:
* method name change,
* bug fix and unit test for "dotProduct" (instance method).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388406 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 10:42:30 +00:00
Sebastien Brisard
9146a58024
In AbstractRealMatrix, removed orphan javadoc comment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388298 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:56:06 +00:00
Sebastien Brisard
95bf9fb6cf
In AbstractRealMatrix, removed empty abstract method copy() (specified in interface RealMatrix).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388296 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:53:28 +00:00
Sebastien Brisard
d2258eff70
Removed some @Override tags, which have become illegal following some changes in r1388154.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388294 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:49:51 +00:00
Sebastien Brisard
b2cea08e85
MATH-854
...
- filled the "throws" clause of Array2DRowRealMatrix,
- corrected some method signatures in RealMatrix and AbstractRealMatrix accordingly,
- in AbstractRealMatrix, removed "abstract implementations" of some methods specified in interface RealMatrix, as they serve no purpose.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388154 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 18:50:45 +00:00
Gilles Sadowski
7a74137904
MATH-863
...
New "Quaternion" class. Thanks to Julien Anxionnat.
After applying the original patch, the following changes were made:
* Renamed the "static" quaternion instances ("PLUS_" prefix removed).
* Removed some (syntactic sugar) methods; removed or modified corresponding
unit tests.
* Made the redundant accessors call the "canonic" ones.
* Removed the default tolerance and added an explicit tolerance parameter
in methods that depend on equality testing.
* When a "ZeroException" is thrown, the actual value of the norm is provided
in the detailed message (as the implementation actually does not use a
strict comparison with 0).
* Added "equals(Object)" and "hashCode" methods.
* Javadoc and formatting. Added license header.
* Removed "toString" documentation (as this representation should not be
binding). Changed the representation to not use a comma.
* Renamed "scalarMultiply" to "multiply".
* More stringent tolerance used in the unit tests assertions, whenever
possible.
* Added unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388099 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 16:21:46 +00:00
Gilles Sadowski
600f00ba58
MATH-866
...
Method to test for equality with a given relative tolerance (due to
Yannick Tanguy and Julien Anxionnat). Original patch provided in
JIRA MATH-863 and committed with a few changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387941 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 10:09:37 +00:00
Thomas Neidhart
b245e08d24
Removed exception from throws clause which is never thrown.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387637 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 15:21:57 +00:00
Thomas Neidhart
322fde4ec5
Javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387635 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 15:15:43 +00:00
Luc Maisonobe
a20a890fa6
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387501 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 09:12:01 +00:00
Luc Maisonobe
c390c53c22
Removed dead test code.
...
The code was never used and was an implementation of a now deprecated
interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387084 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 10:30:01 +00:00
Luc Maisonobe
5259df5f91
Fail early on wrong derivation order.
...
If the user asks for a derivation order that is too large for the number
of points in the finite differences algorithm, we now detect it before
the first call to the underlying function.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387064 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 09:07:54 +00:00
Sebastien Brisard
19c954cabc
MATH-854: populated throws clause of AbstractRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387002 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 06:38:33 +00:00
Luc Maisonobe
830cd9eeca
Added a FiniteDifferencesDifferentiator class.
...
This class implements both UnivariateFunctionDifferentiator,
UnivariateVectorFunctionDifferentiator and
UnivariateMatrixFunctionDifferentiator. It is not limited in the
derivation order, but checks the order is consistent with the number of
points. Typically, attempting to extract 5th derivative from a 3 points
scheme will not work (a NumberIsTooLargeException will be thrown,
referencing the derivation order).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386745 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:42:47 +00:00
Luc Maisonobe
3876bd9bc4
Added a way to create DerivativeStructure from all derivatives.
...
In some cases, users may already have all the derivatives available at
once. It was impossible to use this knowledge and create the object, so
users had to user dirty tricks like adding together variables holding
value and zero derivative with variables holding derivatives and zero
value.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386743 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:42:19 +00:00
Luc Maisonobe
be26e43b98
Added differentiator interfaces for vector and matrix functions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386742 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:41:54 +00:00
Luc Maisonobe
69f087edcb
Differentiable function can trigger any MathIllegalArgumentException.
...
One very important case corresponds to an unsupported derivation order.
The order is not enforced in the API, but is specified as the properties
of the DerivativeStructure argument, as well as the number of free
parameters. Some functions have no limitation on this order (typically
functions implemented using only the DerivativeStructure API), but some
functions may limit the derivation order to 1 or 2 as they implement the
differentiation themselves or through finite differences.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386741 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:41:24 +00:00
Sebastien Brisard
06880f1138
Populated throws clause of RealMatrix (MATH-854); javadoc + formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386486 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 06:48:04 +00:00
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
Phil Steitz
11bc47878c
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382382 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:56:11 +00:00
Phil Steitz
66dece126a
Clarified definition of isSupportXxxBoundInclusive in RealDistribution interface,
...
made code consistent with the definition, and deprecated these methods, marking
for removal in 4.0.
JIRA: MATH-859
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382380 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:15:32 +00:00
Phil Steitz
2d2912e4a1
Eliminated no longer accurate implementation reference.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382335 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:48:08 +00:00
Phil Steitz
ae26b9bf23
Added throws declarations, improved javadoc, made Kurtosis increment consistent with other moment statistics. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:27:47 +00:00
Gilles Sadowski
b8f2fb815f
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382197 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 22:35:01 +00:00
Gilles Sadowski
ac597cc172
MATH-855 (second take).
...
Best point must be returned.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382070 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 15:43:40 +00:00
Sebastien Brisard
ad923872f3
MATH-854: fill the "throws" clause of OpenMapRealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381730 13f79535-47bb-0310-9956-ffa450edef68
2012-09-06 19:42:35 +00:00
Gilles Sadowski
d3cfd50cfc
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381410 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 21:52:42 +00:00
Thomas Neidhart
86321681e7
Add throw declarations for filter package, javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 20:06:07 +00:00
Thomas Neidhart
5082325771
Javadoc formatting cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381310 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 19:22:17 +00:00
Luc Maisonobe
366d796c36
Added throw declarations for package dfp.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381285 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:28 +00:00
Luc Maisonobe
54d00b13c6
Added throw declarations for package complex.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381284 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:08 +00:00
Luc Maisonobe
1dd611f794
Added throw declarations for package util.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381283 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:29:47 +00:00
Luc Maisonobe
003f022df4
Added throw declarations for FieldElements.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381282 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:23:54 +00:00
Gilles Sadowski
52582d8c45
Update for MATH-841 and MATH-855.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:51:46 +00:00
Gilles Sadowski
68fe06032a
MATH-841
...
Performance improvement in method "gcd(int, int)" (~2 to 4 times faster than
the previous implementation). Thanks to Sebastien Riou.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381206 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:46:59 +00:00
Gilles Sadowski
350f726ce5
MATH-855
...
The best point is sometimes not the last one evaluated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381195 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:22:44 +00:00
Phil Steitz
04b34cc1a5
Added density - cdf consistency test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381029 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 06:53:45 +00:00
Sebastien Brisard
8a0fef0fb7
MATH-854: fill the throws clause of all methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380444 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 04:10:09 +00:00
Sebastien Brisard
4e7d797b1c
MATH-854: fill the throws clause of all methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380440 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 03:08:31 +00:00
Sebastien Brisard
56a22909a1
MATH-854: populate the throws clause in package o.a.c.m.linear.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380122 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 03:54:23 +00:00
Luc Maisonobe
9e933debcb
Populate throws declarations for geometry package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379977 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:22:52 +00:00
Luc Maisonobe
e8e94f5936
populate throws declaration for ODE package
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379975 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:21:00 +00:00
Luc Maisonobe
46d95b23ff
Updated error message with new parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379974 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:55 +00:00
Luc Maisonobe
449f2d4f79
Javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379973 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:10 +00:00
Gilles Sadowski
98e56e813d
"final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379905 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:56:50 +00:00
Gilles Sadowski
aa79abed6d
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379904 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:54:52 +00:00
Gilles Sadowski
0af91ecfbe
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379560 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 19:40:30 +00:00
Sebastien Brisard
86f09b3e1f
MATH-849: added new test in GammaDistributionTest to check that new
...
implementation of Gamma.logGamma does not compromise the resolution of
MATH-735.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379271 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:14:03 +00:00
Sebastien Brisard
aa2da41c68
MATH-849: changed boundary case x = 8.0 in double Gamma.logGamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379270 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:12:16 +00:00
Sebastien Brisard
4a15003955
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379262 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:51:24 +00:00
Sebastien Brisard
cf1f553dc6
MATH-849: implementation of double Gamma.gamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379261 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:48:29 +00:00
Sebastien Brisard
c1c7da271b
MATH-849: further tests of double Gamma.logGamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379256 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:13:25 +00:00
Sebastien Brisard
c4f81a87ee
MATH-849: unit tests for double Gamma.logGamma1p(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379255 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:01:11 +00:00
Sebastien Brisard
1398a16c7c
Formatting (removed Eclipse tags @formatter:on, @formatter:off)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379254 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:59:12 +00:00
Sebastien Brisard
99a9552531
MATH-849: unit tests for double Gamma.invGamma1pm1(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:57:50 +00:00
Sebastien Brisard
8a3dd3725f
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379252 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:53:19 +00:00
Sebastien Brisard
74b5b44868
MATH-849: refined the test of logGamma(x) near x = 1.0, 2.0 and 3.0, which
...
were difficult zones in the previous (Lanczos) implementation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379247 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:31:47 +00:00
Gilles Sadowski
8170e47c22
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379218 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 23:18:57 +00:00