Commit Graph

4110 Commits

Author SHA1 Message Date
Sebastien Brisard c7b488ff70 Added missing license.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344104 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 05:25:46 +00:00
Sebastien Brisard d5d66faf07 Created utility method to assert equality of two instances of RealVector.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344102 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 05:13:28 +00:00
Thomas Neidhart 7db343eea9 Removed unnecessary import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344032 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:26:43 +00:00
Thomas Neidhart 60b1533975 Cleanup of OnePointCrossover.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344031 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:26:22 +00:00
Thomas Neidhart 86e1cc0335 [MATH-777] added NPointCrossover policy, thanks to Reid Hochstedler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344030 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:24:24 +00:00
Luc Maisonobe 129e53d466 Use inline computation for OrderedTuple hash code.
JIRA: MATH-793

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343920 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 18:59:54 +00:00
Luc Maisonobe 24c940f0b5 Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343694 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 12:21:27 +00:00
Luc Maisonobe ab58ea0f84 Use proper conversion for primitive hashcode.
JIRA: MATH-793

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343616 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 09:14:37 +00:00
Sebastien Brisard 7f97d1399b MATH-792: implementation of the visitor pattern for ArrayRealVector (overrides
default implementation in RealVector).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343547 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 05:36:19 +00:00
Sebastien Brisard af78040b50 Added 'final' keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343546 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 05:34:41 +00:00
Phil Steitz 29c353915b Added @Retry annotations for tests using secure generators, changed permutation test to use TestUtils Chisquare. JIRA: MATH-598.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343382 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 19:59:42 +00:00
Phil Steitz dc4dfa3b70 Improved javadoc, eliminated unused (and unlikely to ever be used) method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343370 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 19:31:54 +00:00
Sebastien Brisard 3246e6a84b Reverted changes mistakenly committed in r1343342.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343346 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:21:39 +00:00
Sebastien Brisard e93b7b2c64 Reverted changes mistakenly committed in r1343342.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343345 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:17:44 +00:00
Sebastien Brisard 209f22fc1c MATH-792:
- definition of RealVectorChangingVisitor,
  - various methods to visit the entries of a RealVector (entries are possibly modified),
  - default implementation in RealVector abstract class,
  - unit tests in abstract RealVectorAbstractClass.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343342 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:03:44 +00:00
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