Commit Graph

3823 Commits

Author SHA1 Message Date
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
Gilles Sadowski 48d4f49acb MATH-783
Re-instated the relaxation of line search tolerances, which can lead to a
significant performance improvement.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1331849 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 23:05:47 +00:00
Gilles Sadowski f700aeba3e MATH-782
Location of user-defined convergence check.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1331635 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 23:30:41 +00:00
Gilles Sadowski c8f373fa5c Added unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330801 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 12:13:49 +00:00
Gilles Sadowski c7c27f910a MATH-783
Made the internal "line" search use a stopping criterion based on function
values instead of domain values (as is the default in "BrentOptimizer").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330739 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 10:02:48 +00:00
Sebastian Bazley c3e3184821 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330625 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:32:58 +00:00
Sebastian Bazley 83dfa0a5c0 Add missing (?) @Override marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330623 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:29:46 +00:00
Sebastian Bazley 2ba27ad9df Fix generics warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330622 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:28:14 +00:00
Sebastian Bazley a5e84b3e75 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330621 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:19:36 +00:00
Sebastian Bazley 656d46f872 Missing @Deprecated marker
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330619 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:18:46 +00:00
Sebastian Bazley 27f90d65a5 Javadoc: @value only works for compile-time constants
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330616 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 01:03:16 +00:00
Gilles Sadowski 58a204274e MATH-782
Moved incorrectly placed block of code (user-defined stopping criterion).
Added unit test.
New utility class for simple stopping criterion based on (univariate)
function values.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1330321 13f79535-47bb-0310-9956-ffa450edef68
2012-04-25 14:49:44 +00:00
Gilles Sadowski 460839bd61 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1329197 13f79535-47bb-0310-9956-ffa450edef68
2012-04-23 12:10:14 +00:00
Gilles Sadowski 2f6a4f8456 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1329144 13f79535-47bb-0310-9956-ffa450edef68
2012-04-23 09:27:01 +00:00
Luc Maisonobe ac8ff24509 avoid division by zero when dealing with single-point intervals sets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1328959 13f79535-47bb-0310-9956-ffa450edef68
2012-04-22 20:01:44 +00:00
Luc Maisonobe cdb5e8964b improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1328958 13f79535-47bb-0310-9956-ffa450edef68
2012-04-22 20:00:33 +00:00
Sebastian Bazley 23a6ba5cee Document why we are not using the simpler Hex constants
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1328501 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:08:41 +00:00
Sebastian Bazley 5e7c719322 Restore closing tag accidentally deleted in r1328492
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1328499 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 21:03:21 +00:00
Luc Maisonobe de12e28789 Added a workaround for an OpenJDK issue on sparc solaris.
The compiler has issues with very small double constants, despite they
are perfectly legal Java and representable in IEEE754.

JIRA: MATH-721

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1328492 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 20:15:11 +00:00
Gilles Sadowski b0146fbe53 Added a unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1327526 13f79535-47bb-0310-9956-ffa450edef68
2012-04-18 14:42:13 +00:00
Thomas Neidhart ebadb558aa [MATH-779] Fixed iterator() method in ListPopulation to return an iterator of the unmodifiable list, thanks to Reid Hochstedler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1325427 13f79535-47bb-0310-9956-ffa450edef68
2012-04-12 18:32:53 +00:00
Thomas Neidhart 0d61a96330 [MATH-775] reverted internal list in ListPopulation to private scope and added protected getter.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1325422 13f79535-47bb-0310-9956-ffa450edef68
2012-04-12 18:18:25 +00:00
Gilles Sadowski 6c6d54e80e Broken links in documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1324680 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 10:02:43 +00:00