Commit Graph

3115 Commits

Author SHA1 Message Date
Phil Steitz 7b4c168854 Made ConstantGenerator public and constant value configurable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152659 13f79535-47bb-0310-9956-ffa450edef68
2011-07-31 22:51:35 +00:00
Phil Steitz 1bc6cbd731 Clarified null contract.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152658 13f79535-47bb-0310-9956-ffa450edef68
2011-07-31 22:49:58 +00:00
Gilles Sadowski a7c7172b3f MATH-599
Renamed "AllowedSolutions" to "AllowedSolution".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152644 13f79535-47bb-0310-9956-ffa450edef68
2011-07-31 21:27:39 +00:00
Phil Steitz 20b4584303 Corrected observed/expected value label error.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152585 13f79535-47bb-0310-9956-ffa450edef68
2011-07-31 15:57:20 +00:00
Gilles Sadowski 06ddf2d772 MATH-637
Replaced "DescriptiveStatistics" by "StatisticalSummary", as suggested
by Phil.
Added some "randomness" so that the timed code has a side-effect that
cannot be optimized away by the JIT compiler.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152584 13f79535-47bb-0310-9956-ffa450edef68
2011-07-31 14:04:41 +00:00
Gilles Sadowski 48e54b0a55 MATH-637
Several modifications to avoid some potential pitfalls of micro-benchmarking:
Attempt to run GC preemptively, keep track of the computation result, output
variance of the run times.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152524 13f79535-47bb-0310-9956-ffa450edef68
2011-07-30 21:59:57 +00:00
Gilles Sadowski 89bf9e4d9a MATH-638
Fixed Findbugs and CheckStyle warnings.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152462 13f79535-47bb-0310-9956-ffa450edef68
2011-07-30 13:50:51 +00:00
Gilles Sadowski efbad3aa60 Junit4 package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152408 13f79535-47bb-0310-9956-ffa450edef68
2011-07-30 00:38:30 +00:00
Gilles Sadowski 9879b8baa8 MATH-637
Simple benchmarking utility.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152380 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 21:46:28 +00:00
Phil Steitz a3053da744 Moved PRNG seeding so it actually determines fixed seed for the test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152366 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 20:28:12 +00:00
Luc Maisonobe 9679d37e09 Use the new nth order bracketing Brent solver by default if user didn't specify a root solver for ODE events detection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152283 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:50:39 +00:00
Luc Maisonobe fe650d7b39 fixed javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152281 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:49:16 +00:00
Luc Maisonobe 6a329f9e43 Added a solver for Dfp-based (i.e. high accuracy) functions.
JIRA: MATH-636

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152280 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:47:36 +00:00
Luc Maisonobe c68662e257 Added a Brent-like solver that has higher (user specified) order and does
bracket selection on the result: BracketingNthOrderBrentSolver.

JIRA: MATH-635

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152276 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:44:21 +00:00
Luc Maisonobe 21d9fa79fb document some exceptions that may be thrown by derived classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152268 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:35:19 +00:00
Luc Maisonobe b5d183025d Added a few shortcut methods and predicates to Dfp
(abs, isZero, negativeOrNull, strictlyNegative, positiveOrNull, strictlyPositive).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1152266 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 15:34:10 +00:00
Gilles Sadowski f0e28eb000 MATH-633
"AbstractRealMatrix" inherits from "RealLinearOperator".
Added "@Override" annotations.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151806 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 11:59:23 +00:00
Gilles Sadowski 4f7b6d2d75 MATH-613
Linear combination of vectors.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151665 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 23:26:45 +00:00
Henri Yandell 86835c1471 Adding PMD plugin, hope that's okay
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151332 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 05:07:40 +00:00
Henri Yandell 78abc7984d Removing unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151329 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 04:11:39 +00:00
Henri Yandell bea7d3b97b Removing trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151328 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 04:11:21 +00:00
Gilles Sadowski 0770b1f1a9 MATH-623
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151062 13f79535-47bb-0310-9956-ffa450edef68
2011-07-26 11:00:32 +00:00
Luc Maisonobe 57ae67e836 typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1151012 13f79535-47bb-0310-9956-ffa450edef68
2011-07-26 07:48:05 +00:00
Phil Steitz ca82f7a1a0 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150929 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 21:48:04 +00:00
Phil Steitz 54b0cce8fe Added ModelSpecificationException and changed UpdatingRegression impls to use it. JIRA: MATH-607.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150923 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 21:34:04 +00:00
Gilles Sadowski d4283bbd1d MATH-632
Added tests referred to in the corresponding JIRA ticket.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150496 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 21:43:08 +00:00
Gilles Sadowski af33f7c7ef MATH-577
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150495 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 21:39:36 +00:00
Phil Steitz 9099fa31a1 Javadoc, removed commented out code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150462 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 18:46:20 +00:00
Phil Steitz 431ff783f0 Made scalar division consistent with complex division wrt infinite arguments, improved tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150433 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 16:45:06 +00:00
Phil Steitz 093aa6786f Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150430 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 16:35:36 +00:00
Sebastian Bazley d2adf76e61 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150381 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:31:52 +00:00
Sebastian Bazley 69b7b985da Nested inline tags are not allowed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150380 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:28:50 +00:00
Sebastian Bazley a95b0def8c Nested inline tags are not allowed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150379 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:27:20 +00:00
Sebastian Bazley 3335529258 Java 1.5 does not allow @Override for method implementations, only true overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150378 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 14:24:11 +00:00
Gilles Sadowski b29fc9645a MATH-577
Various enhancements to the "Complex" class, namely operators (add,
subtract, ...) taking a "double" argument, improved consistency in
the use of "NAN" and "INF" fields, updated Javadoc. Mainly due to
Arne Plöse.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150340 13f79535-47bb-0310-9956-ffa450edef68
2011-07-24 11:21:55 +00:00
Gilles Sadowski e99ab8489c Copy/paste bug.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150089 13f79535-47bb-0310-9956-ffa450edef68
2011-07-23 12:09:26 +00:00
Gilles Sadowski b05a3cdbae MATH-629
Direct call to the overloaded method that actually implements the
functionality.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149756 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 22:51:37 +00:00
Gilles Sadowski c4ed11aba2 MATH-623
Slightly more efficient implementation of some methods (due to Arne Plöse).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149405 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 23:17:52 +00:00
Phil Steitz 6414ab061b Eliminated console output from tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149363 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 21:06:43 +00:00
Mikkel Meyer Andersen cffa97186e Added element for MATH-585
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149353 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 20:43:21 +00:00
Mikkel Meyer Andersen b44d8ee8c8 Added fix for MATH-585: Implemented faster generation of random gamma variates using Ahrens and Dieter (1974) and Marsaglia and Tsang (2001). Test case was improved, too.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149350 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 20:37:35 +00:00
Phil Steitz 47043fea65 Missing javadoc, extracting literals (will be removed in subsequent refactoring). JIRA: MATH-607
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149335 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 19:47:10 +00:00
Phil Steitz d13bdc025a Javadoc, remove trailing spaces. JIRA: MATH-607.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149281 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 17:56:05 +00:00
Sebastian Bazley 67237993b4 Copy all test resources to agree with Maven behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1149244 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 16:04:21 +00:00
Gilles Sadowski 7133fb43b7 MATH-623
Slightly faster "add" method (due to Arne Plöse).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148952 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 22:09:17 +00:00
Luc Maisonobe 0d0c461e6e Allow discrete events to be detected by ODE solvers also at step start.
JIRA: MATH-605

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148736 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 12:47:11 +00:00
Luc Maisonobe 262fe4c088 Rewritten SVD implementation based on JAMA code.
JIRA: MATH-327, MATH-383, MATH-465, MATH-583, MATH-611

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148714 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 12:15:00 +00:00
Luc Maisonobe 97b54ad87f removed Java 6 specific method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148709 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 11:35:48 +00:00
Luc Maisonobe 9ac9921796 fixed typo on bracket type for divided differences
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148685 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 10:24:15 +00:00
Phil Steitz 2d590e38b3 Added Miller updating regression implementation. JIRA: MATH-607. Contributed by Greg Sterijevski.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148557 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 21:44:41 +00:00