Commit Graph

3383 Commits

Author SHA1 Message Date
Sebastian Bazley 372764aef6 Unused
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169695 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 11:21:43 +00:00
Sebastian Bazley dad0b0163b Rearrange so static classes are at the end; no need to scroll past to get to the code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169588 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 00:37:57 +00:00
Sebastian Bazley 806fa1cdd2 MATH-650 move static setup methods to helper class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169527 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 20:43:27 +00:00
Sebastian Bazley 46b35abc2c Reword to not reveal too much about implementation (apart from IOD of large tables).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169467 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 15:24:40 +00:00
Sebastian Bazley a0b1c747b5 Wrong table size
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169466 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 14:55:50 +00:00
Sebastian Bazley c4137c5829 No point keeping factorial init code; also use actual size of FACT table.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169465 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 14:42:31 +00:00
Luc Maisonobe bcabb90464 added documentation for FastMath in user guide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169438 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 12:36:00 +00:00
Luc Maisonobe d33eb89423 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169437 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 12:35:33 +00:00
Sebastian Bazley 9da9da1eb7 Factorials look nicer as whole numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167664 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 01:50:36 +00:00
Gilles Sadowski 3ee9c4a7d8 MATH-650
Setting "INIT_TABLES" to "false" (in order to use preset tables), as was the
case prior to revision 1167657.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167660 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 01:30:11 +00:00
Gilles Sadowski 52649fda4c MATH-650
Refactored inner classes so that one can switch (at compile time) between
using preset arrays or computing their contents.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167657 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 00:30:11 +00:00
Gilles Sadowski ae7a9de06f Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167614 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 22:13:34 +00:00
Gilles Sadowski 3a68ac25a9 MATH-664
Allow to pass a singularity threshold value to "getCovariances".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167612 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 21:53:49 +00:00
Greg Sterijevski e2c4bfcd29 (MATH-649) SimpleRegression needs the ability to suppress the intercept
This commit pushes changes to allow the estimation of the a regression in which the intercept is constrained to be zero. I am also pushing changes to change.xml.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167600 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 20:21:52 +00:00
Greg Sterijevski 25acfb6505 Changing doc to reflect revised constructor for SimpleRegression
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167460 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 05:20:56 +00:00
Greg Sterijevski 99458101a5 Added a comment as per mail list
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167454 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 04:43:36 +00:00
Greg Sterijevski 88ced96cd0 (MATH-649) SimpleRegression needs the ability to suppress the intercept
This commit pushes changes to allow the estimation of the a regression in which the intercept is constrained to be zero. I am also pushing two unit tests. 

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167451 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 04:18:31 +00:00
Gilles Sadowski 8929c05521 New constructor that enables one to customize the behaviour at counter
exhaustion (namely, select which exception to throw).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167387 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 23:01:59 +00:00
Gilles Sadowski 8f09fa850a New constructor and "canIncrement" method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167371 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 21:58:37 +00:00
Gilles Sadowski 2342db442a NonPositiveDefiniteMatrixException": Changed base class, and modified message so
that it is (a little) less misleading (it is closer to the actual check which can
only report that it detects non-definite-positiveness at some point of the
transformation).
Changed test in "CholeskyDecompositionImpl" to allow "O" for the threshold while
keeping the requirement that the element must be strictly positive.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167252 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 15:44:57 +00:00
Gilles Sadowski 90b0c47e59 Using Junit4 annotation instead of explicit try/catch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167217 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 14:35:00 +00:00
Sebastian Bazley 6bba078367 MATH-658 Dead code in FastMath.pow(double, double) and some improvement in test coverage
Fix test cases to use Assert rather than throws
Convert comments on test cases to assert messages

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1167180 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 14:04:19 +00:00
Sebastien Brisard a21ce79c18 Removed double[][] solve(double[][]) from SingularValueDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166965 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:14:15 +00:00
Sebastien Brisard 58973e521f Removed double[][] solve(double[][]) from QRDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166964 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:13:31 +00:00
Sebastien Brisard ac3c66add4 Removed double[][] solve(double[][]) from LUDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166963 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:13:03 +00:00
Sebastien Brisard 4a73dfc4fe Removed double[][] solve(double[][]) from EigenDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166962 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:12:22 +00:00
Sebastien Brisard fc1bf19d9a Removed double[][] solve(double[][]) from CholeskyDecompositionImpl.Solver
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:11:27 +00:00
Sebastien Brisard 0b0573d826 Removed double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166960 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 02:09:44 +00:00
Sebastian Bazley 4affc3915c Tab police; also removed unnecessary trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166926 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 22:18:38 +00:00
Sebastian Bazley 6f0ff08189 Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166925 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 22:17:30 +00:00
Luc Maisonobe acb06a976b removed static imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166869 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 19:33:13 +00:00
Sebastian Bazley ace9e15ad9 MATH-658 Dead code in FastMath.pow(double, double) and some improvement in test coverage
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166771 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 15:59:11 +00:00
Gilles Sadowski 2434e63187 Deleted obsolete Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 15:36:54 +00:00
Gilles Sadowski a4d48af48a More detailed message for "NonPositiveDefiniteMatrixException".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166674 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 13:13:16 +00:00
Gilles Sadowski 6b9cf3c1ec MATH-566
Removed "MathThrowable".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166646 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 12:08:16 +00:00
Gilles Sadowski 7de255581c Wrong message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166639 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 11:52:54 +00:00
Gilles Sadowski 23df2f536f MATH-663
Removed "getData" method in "RealVector"; replaced calls with "toArray()".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166629 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 11:15:02 +00:00
Gilles Sadowski 1607b9c7ed Wrong place-holder.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166594 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 09:56:24 +00:00
Sebastien Brisard c004c9daea Removed call to double[][] solve(double[][]) from initializeHighOrderDerivatives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166533 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 05:59:22 +00:00
Sebastien Brisard 5ec76b26fa Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166516 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:24:28 +00:00
Sebastien Brisard 102473af94 Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166515 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:24:04 +00:00
Sebastien Brisard 0eac3c014c Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166514 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:23:44 +00:00
Sebastien Brisard 0cf42e9ae0 Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166513 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:23:19 +00:00
Sebastien Brisard a2f25ddb6e Removed call to double[][] solve(double[][]) from interface DecompositionSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166512 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 03:22:50 +00:00
Sebastian Bazley aeb0f8329e MATH 650 FastMath has static code which slows the first access to FastMath
Enclose each large data table in nested static class so it's only loaded on first access


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166437 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 22:05:06 +00:00
Luc Maisonobe 4107ac1db8 Removed completely MathUserException.
JIRA: MATH-195

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166311 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:48:06 +00:00
Gilles Sadowski 22072e0060 Added "final".
Moved declaration of "sum" where it is used.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1166099 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 10:34:49 +00:00
Sebastian Bazley 687cc21cb4 More docn of algorithms and magic numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165929 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 23:33:54 +00:00
Sebastian Bazley 0fcbaec47a Document some magic numbers; trailing spaces; other doc tweaks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165903 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 22:17:21 +00:00
Sebastian Bazley a1dd05b8c8 MATH 650 FastMath has static code which slows the first access to FastMath
First pass - convert runtime init to preset initialisers

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165846 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 21:06:58 +00:00