1501 Commits

Author SHA1 Message Date
Phil Steitz
c5d148896f Forced symmetry in binomialCoefficientLog and added test cases for MathUtils.
JIRA: MATH-242
Reported and patched by Christian Semrau

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@736288 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 11:30:36 +00:00
Phil Steitz
944446a1a8 Fixed error in binomial coefficient computation
JIRA: MATH-241
Reported and patched by Christian Semrau

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735879 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:52:02 +00:00
Luc Maisonobe
e8cfb4889e added a Legendre-Gauss integrator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735876 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 23:40:14 +00:00
Phil Steitz
260b3a1410 No code change. Fixed spelling errors in comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735830 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 21:25:45 +00:00
Phil Steitz
e4886c0a39 Fixed error in factorial accuracy. JIRA: MATH-240.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735781 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 19:43:01 +00:00
Luc Maisonobe
89db6968bc removed commented out code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735546 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 21:09:42 +00:00
Luc Maisonobe
56e7606e9a improved consistency between solvers/integrators
by providing the integrand function as a parameter to integrate
rather that at construction, thus allowing reuse of a configured integrator
Jira: MATH-218

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735545 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 21:06:15 +00:00
Luc Maisonobe
217fe6de71 added absolute accuracy handling for integrators
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735536 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 20:45:16 +00:00
Luc Maisonobe
e2048a1dd3 trying to recover history for solvers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735530 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 19:48:52 +00:00
Luc Maisonobe
2e405f1724 fixed various minor bugs identified by checkstyle and findbugs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735501 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 16:57:29 +00:00
Luc Maisonobe
e6e70980dd added missing header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735488 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 16:13:12 +00:00
Luc Maisonobe
e60e3de474 Added a new minimization package with an implementation of the Brent algorithm
contributed by Gilles Sadowski.
The implementation needs some testing as it seems to never use the parabola fitting
and only relying on golden section. This may be due to the refactoring I did on
the original patch.
Jira: MATH-177

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735475 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 15:39:35 +00:00
Luc Maisonobe
e7c3207b05 extracted a superinterface ConvergingAlgorithm from UnivariateRealSolver
for later reuse by upcoming minimization algorithms

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735468 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 14:47:51 +00:00
Luc Maisonobe
eab127dce3 split the analysis package into several sub-packages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735452 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 13:17:58 +00:00
Luc Maisonobe
1e3c634cb9 split the analysis package into several sub-packages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735449 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 13:07:22 +00:00
Phil Steitz
d326b9e467 javadoc formatting only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735312 13f79535-47bb-0310-9956-ffa450edef68
2009-01-17 17:08:10 +00:00
Luc Maisonobe
dabf3a5beb fixed overflow error in gdc computation
JIRA: MATH-238

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735178 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 23:06:32 +00:00
Phil Steitz
4564adbf19 Changed return type of nthRoot to List
Renamed getPhi to getArgument
Changed and documented behavior of nthRoot wrt NaN, infinite components
Improved nth root computation
Added some test cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731822 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 03:46:29 +00:00
Luc Maisonobe
34bc1eed72 removed two false positives from findbugs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731749 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 22:32:52 +00:00
Luc Maisonobe
d1b140e2b6 updated findbugs plugin version
fixed exclusion rule for some false positives

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731746 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 22:17:12 +00:00
Phil Steitz
e7ffb6ebc9 Changed covariance matrix computation to use QR decomp.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731398 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 01:01:16 +00:00
Phil Steitz
e7911e6efa Added standard errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731356 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 20:39:45 +00:00
Luc Maisonobe
f2b72fc248 added missing (inherited) javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731340 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 19:13:22 +00:00
Luc Maisonobe
453ba37f7a removed unused exception clause
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731339 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 19:12:52 +00:00
Luc Maisonobe
27561f331c added missing header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731338 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 19:10:49 +00:00
Luc Maisonobe
6aa3cd95c3 removed all external decomposition solvers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731335 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 19:02:14 +00:00
Phil Steitz
5e6d73f239 Javadoc only. Cleanup formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731320 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 18:38:29 +00:00
Luc Maisonobe
2cd4edae04 simplified tests
added new tests

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731308 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 18:08:50 +00:00
Luc Maisonobe
d27f56a6d4 fixed a dimension error with under-determined problems
removed IllegalStateException
create a DenseRealMatrix when solving A.X = B

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731307 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 18:08:18 +00:00
Luc Maisonobe
728e7b227d fixed a block width computation error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731285 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 16:14:34 +00:00
Luc Maisonobe
effa1be80d fixed wrong matrix type in test ...
sorry

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731245 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:40:04 +00:00
Luc Maisonobe
38d8f7434f new tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731243 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:36:37 +00:00
Luc Maisonobe
0a57f0e60d added a missing error message
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731233 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:10:20 +00:00
Luc Maisonobe
937d4feabc avoid ugly call to getDataRef that relies on vector internal implementation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731232 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:09:53 +00:00
Luc Maisonobe
1336db1d5c added copySubmatrix methods
use matrix visitors to implement some existing methods more efficiently

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731231 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:07:43 +00:00
Luc Maisonobe
49cea9feed added default implementations of the matrix visitors interfaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731230 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:06:44 +00:00
Phil Steitz
4572684320 Added hat matrix computation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731166 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 04:11:25 +00:00
Phil Steitz
bede64cd3f Changed to use updated decomp API.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731087 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 20:50:35 +00:00
Luc Maisonobe
dc68d63d33 added a static method createBlocksLayout to prepare array before constructing the matrix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@730838 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 20:21:09 +00:00
Luc Maisonobe
da54a21c78 added a way to build dense matrices from data already in block layout
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@730837 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 20:13:10 +00:00
Luc Maisonobe
d4e1481478 added a configurable value for missing entries in OpenIntToDoubleHashMap
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@730801 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 17:53:44 +00:00
Luc Maisonobe
89c80e938e added column walking order
renamed walkInInternalOrder into walkInOptimizedOrder

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@730787 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 17:07:42 +00:00
Luc Maisonobe
75f8b0afb1 fixed typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729853 13f79535-47bb-0310-9956-ffa450edef68
2008-12-29 10:07:49 +00:00
Luc Maisonobe
7e2fad01b3 fixed a forgotten scaling factor in inverse Hadamard transform
added integer Hadamard transform
note that the integer transform inverse is not always an integer transform

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729849 13f79535-47bb-0310-9956-ffa450edef68
2008-12-29 09:56:18 +00:00
Luc Maisonobe
ed35ae3dee replaced TeX formulas by HTML formulas
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729770 13f79535-47bb-0310-9956-ffa450edef68
2008-12-28 20:21:27 +00:00
Luc Maisonobe
dff725b2e8 Added a RealTransformer interface on top of cosine, sine and Hadamard transforms.
The Fourier transform cannot implement this interface since it produces complex results.
Improved error messages.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729758 13f79535-47bb-0310-9956-ffa450edef68
2008-12-28 18:09:28 +00:00
Luc Maisonobe
f8cc8e9d37 Added method to walk matrix entries with or without changing them in the
visitor design pattern sense. Two different orders can be used, row by row
of following internal storage. Internal order should be preferred when no
specific order is needed, because it will be more cache efficient.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729673 13f79535-47bb-0310-9956-ffa450edef68
2008-12-27 20:55:12 +00:00
Luc Maisonobe
6e5a114c7a added Fast Hadamard Transform
JIRA: MATH-215

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729670 13f79535-47bb-0310-9956-ffa450edef68
2008-12-27 20:24:05 +00:00
Luc Maisonobe
c4126f3174 added nth root computation for complex numbers
JIRA: MATH-236

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729639 13f79535-47bb-0310-9956-ffa450edef68
2008-12-27 16:23:43 +00:00
Luc Maisonobe
9eccfc3c46 fixed javadoc comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@729431 13f79535-47bb-0310-9956-ffa450edef68
2008-12-25 18:06:19 +00:00