Luc Maisonobe
2edd83f5f5
Added tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1446242 13f79535-47bb-0310-9956-ffa450edef68
2013-02-14 15:38:55 +00:00
Luc Maisonobe
ef76ef299e
Added accurate linear combinations for DerivativeStructure instances.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1446210 13f79535-47bb-0310-9956-ffa450edef68
2013-02-14 14:43:15 +00:00
Thomas Neidhart
81eddba084
Remove trailing space.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1444500 13f79535-47bb-0310-9956-ffa450edef68
2013-02-10 08:10:40 +00:00
Gilles Sadowski
0b24467e5f
MATH-933
...
Throw exception from optimizers that do not support simple bounds.
Changing visibility of "parseOptimizationData" method to "protected" in order
to allow the parent class to parse its data before the subclass (and thus
providing more flexibility: the subclass is able check input consistency at
the options parsing step).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1443444 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 12:41:36 +00:00
Luc Maisonobe
3e53d40794
Fix typo and avoid computing an unused element.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1443364 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 09:28:04 +00:00
Luc Maisonobe
23083ae26e
Added conversion of gradients and Hessians from spherical to Cartesian
...
coordinates in 3D.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1443178 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 20:08:33 +00:00
Gilles Sadowski
90e428ddac
MATH-933
...
Throw exception when bounds are passed to an algorithm that does not
support them.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1442377 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 21:31:42 +00:00
Gilles Sadowski
8204809676
MATH-931
...
Efficiency improvement and unit test (thanks to Sean Owen).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1440734 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 23:27:41 +00:00
Gary D. Gregory
95a6da2a68
JUnit 3 -> 4: replace import of junit.framework.Assert with org.junit.Assert.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1437541 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 16:25:05 +00:00
Thomas Neidhart
0c0822d658
[MATH-930] Add new constructors to override the hard-coded cut-off value, further improve javadoc and update failing unit test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1435810 13f79535-47bb-0310-9956-ffa450edef68
2013-01-20 10:04:45 +00:00
Thomas Neidhart
573c806be0
[MATH-930] Updated changes.xml, added unit test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1435546 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 13:44:41 +00:00
Thomas Neidhart
95650f86eb
[MATH-930] Add info the class javadoc wrt convergence criteria, add another ctor to only adjust the epsilon value.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1435544 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 13:40:09 +00:00
Thomas Neidhart
08e227ad3a
Add missing svn:keywords properties.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1435539 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 13:27:24 +00:00
Gilles Sadowski
cedf0d27f9
MATH-929
...
Fixed truncated value. Thanks to Piotr Wydrych.
Added unit test: comparing density values with univariate
normal distribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1433367 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 12:15:50 +00:00
Gilles Sadowski
fea4dd914b
Updated "changes.xml".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1432683 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 18:03:48 +00:00
Phil Steitz
5f0e374d4f
Replaced reference to deleted class.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1432656 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 16:53:12 +00:00
Phil Steitz
a70f833db4
Fixed error (reference to deleted class); added factory method example.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1432652 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 16:24:06 +00:00
Gilles Sadowski
7f4375fcbd
Preparing release 3.1.1.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1430864 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 13:56:21 +00:00
Gilles Sadowski
d2999aa660
Preparing release 3.1.1.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1430849 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 13:37:50 +00:00
Gilles Sadowski
7fd57f3158
Unused variable.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1430847 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 13:18:36 +00:00
Gilles Sadowski
7096b9b24e
Unit tests for "DiagonalMatrix".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1430846 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 13:17:59 +00:00
Gilles Sadowski
c4243e1103
Fixed "CheckStyle" warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1430845 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 13:17:08 +00:00
Gilles Sadowski
185e3033ef
MATH-927
...
Made "BitsStreamGenerator" class "Serializable" to allow cloning of
subclasses. Added cloning test for all "RealDistribution" classes.
Thanks to Dennis Hendriks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1428822 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 12:28:44 +00:00
Gilles Sadowski
216497d772
MATH-925
...
Added "final" keyword.
Removed degenerate case (matrix with no data).
Used constructor chaining.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1427276 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 01:41:09 +00:00
Gilles Sadowski
a9dfc11f1d
Added a "Latest API" link to the site template (as suggested by Phil
...
on the ML).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1427112 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 12:54:58 +00:00
Phil Steitz
59c8371ba1
Dropped extraneous javadoc @param.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1427046 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 04:43:29 +00:00
Gilles Sadowski
8bdb73e3e0
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1427025 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 00:30:27 +00:00
Phil Steitz
6c8aaf0318
Updated download page template to match deployed site.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426998 13f79535-47bb-0310-9956-ffa450edef68
2012-12-30 21:51:11 +00:00
Gilles Sadowski
2836a6f9ef
MATH-924
...
Avoid memory exhaustion for large number of unclorrelated observations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426759 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 13:26:44 +00:00
Gilles Sadowski
b07ecae3d6
MATH-924
...
Using a diagonal matrix to avoid exhausting memory.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426758 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 13:16:17 +00:00
Gilles Sadowski
ace42058d6
MATH-925
...
Minimal implementation of a diagonal matrix. Unit tests are lacking.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426757 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 13:11:51 +00:00
Luc Maisonobe
ed39d2dbe2
reverting commit introduced in r1426616
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426751 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 12:10:52 +00:00
Luc Maisonobe
250cf6e366
Added vector-only weights for multivariate vector optimizers.
...
JIRA: MATH-924
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1426616 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 20:16:38 +00:00
Phil Steitz
c7cfb66633
Changed ValueServer tests to use fixed random seed.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1425978 13f79535-47bb-0310-9956-ffa450edef68
2012-12-26 18:19:30 +00:00
Gilles Sadowski
f50ed38e61
Reverting changes introduced in revision 1425639.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1425640 13f79535-47bb-0310-9956-ffa450edef68
2012-12-24 12:25:52 +00:00
Gilles Sadowski
69c88c7539
Added links for version 3.1 to template.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1425639 13f79535-47bb-0310-9956-ffa450edef68
2012-12-24 12:09:09 +00:00
Gilles Sadowski
db71bca960
Typo in method names.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1424252 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 00:49:00 +00:00
Luc Maisonobe
3c60c05fd4
Added new tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1424107 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 21:10:20 +00:00
Luc Maisonobe
a5f02be035
removed unused import statements
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1424087 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 20:32:50 +00:00
Luc Maisonobe
efe4fc43d6
Adding missing Apache headers.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1424078 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 20:20:29 +00:00
Gilles Sadowski
b3fbfad2b1
Delayed release.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1423693 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 22:08:38 +00:00
Gilles Sadowski
c0a79b0809
MATH-922
...
Parent's field must be updated by subclass.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1423687 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 21:56:18 +00:00
Gilles Sadowski
8953bc7402
Release delayed.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1423563 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 18:11:51 +00:00
Gilles Sadowski
864fa3cfff
Removed usage of deprecated classes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1423558 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 18:07:45 +00:00
Gilles Sadowski
0be09792a0
MATH-922
...
Parent class's method "getCovariances()" assumes that the protected
field "point" contains the result of the optimization.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1423555 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 18:02:52 +00:00
Gilles Sadowski
fec55788a3
Fixed "Clirr" errors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422588 13f79535-47bb-0310-9956-ffa450edef68
2012-12-16 15:01:12 +00:00
Gilles Sadowski
d39c4595b9
Added estimate for the release date in "changes.xml".
...
Copied "findbugs" exclude filters for package "optim".
Updated link to "apidocs" (for release 3.1) in "site.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422581 13f79535-47bb-0310-9956-ffa450edef68
2012-12-16 14:20:20 +00:00
Phil Steitz
32e7890edb
Added missing @since tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422447 13f79535-47bb-0310-9956-ffa450edef68
2012-12-16 01:38:40 +00:00
Gilles Sadowski
386ae0156a
MATH-757
...
Class was not thread-safe.
Comment added to warn users that they must handle synchronization by
themselves if they need it.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422433 13f79535-47bb-0310-9956-ffa450edef68
2012-12-16 00:45:18 +00:00
Phil Steitz
1e40f1f36c
Combined if statements (PMD).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422354 13f79535-47bb-0310-9956-ffa450edef68
2012-12-15 20:59:01 +00:00
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