Sebastien Brisard
8aa20ce2a8
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343339 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 17:53:37 +00:00
Sebastien Brisard
dfc64f8600
Removed explicit conversion from int to Integer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343293 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:39:57 +00:00
Sebastien Brisard
6c13bef9eb
Copy/paste typo (MATH-792).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343219 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 12:17:38 +00:00
Sebastien Brisard
75f1113439
MATH-792: walkInXyzOrder methods are excluded from automatic testing (based on reflexion).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343217 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 12:09:41 +00:00
Sebastien Brisard
6b5659033e
MATH-792:
...
- various methods to visit the entries of a RealVector (entries are unmodified),
- default implementation in RealVector abstract class,
- unit tests in abstract RealVectorAbstractClass,
- all XxxRealVectorTest classes now extend RealVectorAbstractClass.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343163 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:31:13 +00:00
Sebastien Brisard
97a5210fd7
MATH-792: created a visitor for vectors. Entries of the vector being visited are not modified.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343157 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 07:54:16 +00:00
Phil Steitz
03d011748d
Reverted r1343083 commit. Tests using secure random generators can't use fixed seeds. I forgot the default retry was 2, so retry infrastructure was still being used.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343132 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 03:22:28 +00:00
Phil Steitz
58966065ed
Eliminated unused import and retry infrastructure (no longer used). JIRA: Math-598.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343083 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 19:45:06 +00:00
Phil Steitz
c268d99c5a
* Changed testNextHex, textNextSecureHex to use ChiSquareTest via TestUtils method
...
(These tests were written before either of these existed.)
* Dropped @Retry from testNextHex (no longer needed because randomData is now
initialized with a fixed seed).
* Dropped extraneous checks (must have been cut-paste error).
JIRA: MATH-598
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343077 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 18:45:48 +00:00
Phil Steitz
d8575d1ea1
Adding humble self back.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343076 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 18:42:44 +00:00
Sebastien Brisard
b203596f1e
In o.a.c.m3.distribution.GammaDistribution
...
- deprecated getAlpha() and created getShape()
- deprecated getBeta() and created getScale().
See MATH-791.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1342404 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 19:23:37 +00:00
Sebastien Brisard
dde021f1ee
In o.a.c.m3.distribution.GammaDistribution,
...
- renamed class variable alpha to shape,
- renamed class variable beta to scale.
Updated javadoc accordingly. See MATH-791.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1341318 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 06:34:37 +00:00
Thomas Neidhart
3a08bfa6d8
[MATH-718] Use modified Lentz-Thompson algorithm for continued fraction evaluation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1341171 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 19:55:30 +00:00
Sebastien Brisard
282f7175a4
Unit tests for GammaDistribution, based on reference data generated with
...
Maxima. Solves MATH-753.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1339014 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 05:36:40 +00:00
Sebastien Brisard
4b8ab11cd5
Removed illegal @Override.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1338989 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 03:34:32 +00:00
Sebastien Brisard
453356458f
Gamma distribution: reference data for unit tests (see MATH-753).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1338986 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 03:31:10 +00:00
Sebastien Brisard
a6f743b5f2
New implementation of the pdf of Gamma distributions. Solves MATH-753.
...
Additional unit tests to come.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1338548 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 06:21:53 +00:00
Gilles Sadowski
94e0cbdcde
Additional "validation" test in relation to MATH-784. [Not enabled by
...
default (as its name does not end with the string "Test").]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1338144 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 10:50:51 +00:00
Luc Maisonobe
dd6cefb0cc
Fixed a wrong assumption on BSP tree attributes.
...
The assumption was that the attribute was always a boolean when boundary
was empty. This assumption was false when emptiness resulted from a
collapsed boundary. Boolean attributes occur only at leaf nodes, so it
is the cut sub-hyperplane that needed to be checked.
JIRA: MATH-780
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1337929 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 15:51:56 +00:00
Luc Maisonobe
8f423828e0
Replaced RuntimeException with MathInternalError.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1337928 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 15:51:30 +00:00
Luc Maisonobe
39b3fd1877
Put serialization back for PointValuePair and PointVectorValuePair.
...
JIRA: MATH-787
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1337849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 11:16:45 +00:00
Luc Maisonobe
0a88a3cf37
added missing subversion properties in test resource files
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1337527 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 12:54:49 +00:00
Sebastian Bazley
e75e686431
Shortcut checks for identical objects
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336985 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 00:40:26 +00:00
Sebastian Bazley
1822d25471
Redundant check for null; null is not an instanceof any Object
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336983 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 00:38:29 +00:00
Sebastian Bazley
7d9357dfda
Redundant check for null; null is not an instanceof any Object
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336981 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 00:32:27 +00:00
Gilles Sadowski
49a950d28c
MATH-786
...
Reverting most of the changes performed in revision 1336458, because the
caching of the hash code could be the source of inconsistent behaviour,
and we are lacking proof that the performance gain is worth it.
The implementation (from r1336458) of the "hashCode" method is retained.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336958 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 23:36:07 +00:00
Thomas Neidhart
bf6aa3118e
[MATH-718] fixed integer overflow problem identified as part of numerical stability problems with distributions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336915 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 21:53:43 +00:00
Sebastien Brisard
3547415211
In o.a.c.m3.special.Gamma, exposed the Lanczos approximation (MATH-753).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336483 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 05:08:01 +00:00
Gilles Sadowski
cb164171e6
MATH-786
...
Allow caching of the hash code computation. User is expected to
not change the pair contents if he requested the hash code to be
cached.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336458 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 00:14:08 +00:00
Gilles Sadowski
ec4edd9a20
"final", formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336123 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 12:14:16 +00:00
Sebastien Brisard
fb88e67bb1
Reverted changes accidentally committed in r1334315.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336056 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 10:27:04 +00:00
Thomas Neidhart
afce27e29d
[MATH-235] add support for non-symmetric matrices in EigenvalueDecomposition.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334745 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 19:40:57 +00:00
Thomas Neidhart
a8aea5a50b
use different exception to be consistent with EigenDecomposition, use Precision.EPSILON for comparison instead of 2^-52 as in JAMA.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334744 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 19:29:02 +00:00
Thomas Neidhart
1428c12d5e
code style adaptations for SchurTransformer
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334687 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 16:43:02 +00:00
Thomas Neidhart
ada3793d40
minor javadoc fixes for HessenbergTransformer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334644 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:33:32 +00:00
Thomas Neidhart
8dcea987fd
[MATH-235] add SchurTransformer to transform a general real matrix to Schur form.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334643 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:32:42 +00:00
Thomas Neidhart
5869a102fd
[MATH-235] add HessenbergTransformer to transform a general real matrix to Hessenberg form.
...
This is a first step for the eigenvalue decomposition of a non-symmetric matrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334463 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 17:53:32 +00:00
Thomas Neidhart
ecf317f16e
[MATH-759] cleanup unit test ListUnivariateImpl.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334421 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 13:41:04 +00:00
Sebastien Brisard
833111b2e8
In o.a.c.m3.optimization.general.AbstractLeastSquaresOptimizer
...
- deprecated guessParametersErrors()
- created getSigma() which should be used instead (but is not strictly equivalent).
Updated unit tests accordingly.
See MATH-784.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334315 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 05:10:22 +00:00
Thomas Neidhart
28a2839927
[MATH-627] avoid superfluous null checks in (Array)RealVector, thanks to Arno Ploese.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1334198 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 21:42:16 +00:00
Thomas Neidhart
3c4cb189cc
[MATH-781] use epsilon criteria when deciding to drop columns after phase 1.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1333146 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 18:28:37 +00:00
Gilles Sadowski
450456208c
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1333056 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 14:24:55 +00:00
Gilles Sadowski
8ba2780474
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1333036 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:26:01 +00:00
Sebastien Brisard
e1bb49d29d
Standard unit test of least-squares optimizers based on NIST's Statistical Reference Datasets (StRD).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332924 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 05:50:59 +00:00
Sebastien Brisard
afacae936b
Added missing svn properties.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332163 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 11:30:48 +00:00
Sebastien Brisard
d0a5eff570
Checkstyle.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332162 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 11:26:10 +00:00
Sebastien Brisard
0b8e0a285c
Factored out some redundant code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332159 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 11:07:42 +00:00
Sebastien Brisard
6c3673c46b
Implemented convenience classes for easy access to NIST Statistical Reference Datasets (StRD).
...
These classes are used for unit testing of AbstractLeastSquaresOptimizer.
See MATH-784.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332086 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 07:41:58 +00:00
Sebastien Brisard
d3561ffecb
In o.a.c.m3.optimization.general.AbstractLeastSquaresOptimizer, improved the javadoc of guessParametersErrors() (MATH-784).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1332076 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 06:38:00 +00:00
Gilles Sadowski
55824972ea
Relaxed tolerance in unit test (related to commit 1331849).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1331891 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 10:08:23 +00:00