Gilles Sadowski
7222fd432e
Minor fixes (Javadoc formatting).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1174092 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 12:35:47 +00:00
Gilles Sadowski
257d7c7c85
Added "final".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1174032 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 09:55:02 +00:00
Gilles Sadowski
898709086b
Spurious space character.
...
Unnecessary cast.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1174009 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 09:18:14 +00:00
Greg Sterijevski
cc40bb40a9
JIRA: MATH-675 Added isMonotone methods to MathUtils and cleaned up checkOrder.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173974 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 07:34:05 +00:00
Sebastien Brisard
041df9cd9b
Merged EigenDecomposition and EigenDecompositionImpl (see MATH-662).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173965 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 06:43:55 +00:00
Sebastien Brisard
166c691938
Replaced EigenDecomposition by EigenDecompositionImpl (preliminary cleaning for solving MATH-662).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173964 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 06:37:41 +00:00
Sebastien Brisard
265a435568
Updated @since tag
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173788 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 18:45:42 +00:00
Gilles Sadowski
0e9a5f40f4
MATH-650
...
Suggesting to use "resource" files for storing large tables.
"FastMathResource" is a utility for creating and loading those resources.
"FastMathLoadCheck" modified to allow the benchmarking of the various ways
to create the tables needed in "FastMath".
"FastMathResourcesSave" shows how to create the resource files (not a "user"
functionality, as this should be done only once): The resource files have
been created and are located under "src/main/resources/data".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173690 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 14:53:31 +00:00
Sebastien Brisard
60e328c213
Merged CholeskyDecomposition and CholeskyDecompositionImpl (see MATH-662).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173481 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 03:45:37 +00:00
Sebastien Brisard
3c316a16d8
Replaced CholeskyDecomposition by CholeskyDecompositionImpl (preliminary cleaning for solving MATH-662).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173475 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 03:12:45 +00:00
Phil Steitz
1019cefed6
Added test for consistency of cumulativeProbability(double,double) and cumulativeProbability(double). Contributed by Christian Winter.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1173313 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 19:20:59 +00:00
Sebastien Brisard
112b496420
Added unit testing of FieldLUDecompositionImpl.Solver. This test is largely based on LUSolverTest, using Fraction instead of double. It resolves issue MATH-673.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172988 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 06:11:39 +00:00
Sebastien Brisard
8162c7428b
Suppressed lines which were only commented out.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172510 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 08:31:01 +00:00
Sebastien Brisard
0b279a4e3a
Removed FieldDecompositionSolver<T>.solve(T[]). This is in accordance with JIRA MATH-661.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172473 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 06:19:36 +00:00
Sebastien Brisard
efcbcd5cc6
Replaced call to FieldDecompositionSolver<T>.solve(T[]) by FieldDecompositionSolver<T>.solve(FieldVector<T>). This is in accordance with JIRA MATH-661.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172472 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 06:18:40 +00:00
Sebastien Brisard
d5341ec56c
Replaced call to FieldDecompositionSolver<T>.solve(T[]) by FieldDecompositionSolver<T>.solve(FieldVector<T>). The code works, but might be improved (replace T[] with FieldVector<T> all over?).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172470 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 06:15:53 +00:00
Sebastian Bazley
badb5a45b2
Track name change in r1172224
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172237 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 09:49:31 +00:00
Luc Maisonobe
eb09e4d118
Renamed the USE_PRECOMPUTED_TABLES constant into
...
RECOMPUTE_TABLES_AT_RUNTIME.
The previous name was in fact the exact opposite of what was really
done.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172224 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 08:52:03 +00:00
Sebastien Brisard
237c80ba7b
Removed methods treating T[] as FieldVector. Modified SparseFieldVectorTest to allow for testing of operations on mixed types (Sparse/non-sparse).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1172044 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 18:42:03 +00:00
Sebastien Brisard
ff7b63131c
Minor changes to comply with Checkstyle requirements.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1171117 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 14:46:34 +00:00
Sebastien Brisard
33d4b224a6
Removed references to checked exception ConvergenceException in package o.a.c.m.analysis.integration. See JIRA MATH-669.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1171111 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 14:27:41 +00:00
Gilles Sadowski
c1b1b191e0
Correct factor for reporting total time.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1171067 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 12:09:58 +00:00
Gilles Sadowski
88c71bb962
Enhanced formatting of the results printed to stdout.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1170697 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 15:56:08 +00:00
Sebastien Brisard
724130fb7f
svn:eol-style set to 'native'
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1170462 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 07:44:00 +00:00
Sebastien Brisard
4298745b4a
Genereal classes for managing iterations and handling events in iterative algorithms.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1170461 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 07:40:48 +00:00
Gilles Sadowski
a4b4eabe97
Javadoc.
...
Better name for display.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169860 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 18:34:20 +00:00
Sebastian Bazley
d312add3bf
Use reflection to change the compute setting.
...
This allows the code to compile even though the field is private.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1169736 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 13:20:57 +00:00
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