Luc Maisonobe
fafe306ce7
fixed wrong word in javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746583 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 20:21:38 +00:00
Luc Maisonobe
f1ee00c759
handle NaN and infinities correctly in the MathUtils.equals method with tolerance
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746582 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 20:16:36 +00:00
Luc Maisonobe
c1b97f87d5
fixed exception type in a test
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746579 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 20:02:59 +00:00
Luc Maisonobe
2f335ac471
replaced Object[] parameters by variable arguments in exceptions constructors
...
this allows simpler error declaration and removes the need for the strange
null argument with fixed messages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746578 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 20:01:14 +00:00
Luc Maisonobe
8bf548c5e8
Fixed an error in computing gcd and lcm for some extreme values at integer range boundaries.
...
JIRA: MATH-243
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746511 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 13:54:25 +00:00
Luc Maisonobe
39a80bf2cd
Added a MathUtils method to check equality given some error bounds
...
JIRA: MATH-247
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@746506 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 13:36:08 +00:00
Luc Maisonobe
da9117b726
added a no-args constructor for GaussNewtonEstimator
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@745188 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 18:38:32 +00:00
Phil Steitz
4cc86649f4
Increased sensitivity of test and added another p-value verification.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744918 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 13:52:33 +00:00
Phil Steitz
64fa01cd78
Added Pearsons correlation implemendation. JIRA: MATH-114
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744802 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 05:09:49 +00:00
Phil Steitz
2d73d9f99a
Changed to persist and expose the number of observations in the source dataset.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744800 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 05:04:57 +00:00
Luc Maisonobe
f24bbdd41d
moved the decomposition algorithms in a subpackage of the linear package
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744768 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 21:59:09 +00:00
Luc Maisonobe
0992284ca5
improved error messages consistency
...
fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744724 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 19:15:51 +00:00
Luc Maisonobe
59e6743960
fixed findbugs warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744717 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 18:40:31 +00:00
Luc Maisonobe
3796de49e0
fixed checkstyle warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744716 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 18:38:49 +00:00
Luc Maisonobe
098b003e18
added Cholesky decomposition
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744708 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 17:53:32 +00:00
Luc Maisonobe
23a8fc2592
removed references to InvalidStateException, they are never thrown
...
cleaned up exception messages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744682 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 15:43:52 +00:00
Luc Maisonobe
b29a6c1e6e
moved NotPositiveDefiniteMatrixException to the linear package
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744681 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 15:39:50 +00:00
William Barker
63e1a2c76c
Add working equals to SparseRealVector.
...
hashCode implementation is minimal, but I can't see a use case for using a SparseRealVector as a key.
Remove unused imports from OpenInToDoubleHashMap.
Some cleanup for optimized methods, and javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744614 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 06:46:15 +00:00
Luc Maisonobe
e01294b158
Failed attempt to implement Strassen matrix multiplication on recursive layout as
...
described in Siddhartha Chatterjee, Alvin R. Lebeck, Praveen K. Patnala and Mithuna
Thottehodi paper "Recursive Array Layout and Fast Matrix Multiplication".
As of 2009-02-13, this implementation does not work! The padding at left and bottom
sides of the matrix should be cleared after some operations like scalerAdd and is not.
Also there is a limitation in the multiplication that can only process matrices with
sizes similar enough to have the same power of two number of tiles in all three
matrices A, B and C such that C = A*B. These parts have not been fixed since the
performance gain with respect to DenseRealMatrix are not very important, and the
numerical stability is poor.
This may well be due to a bad implementation.
This code has been put in the experimental directory for the record, putting it into
production would require solving all these issues.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@744126 13f79535-47bb-0310-9956-ffa450edef68
2009-02-13 14:38:48 +00:00
Phil Steitz
42b68a69ce
Added correlation package, Covariance class. JIRA: MATH-114
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@743688 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 11:21:54 +00:00
William Barker
01f82aed42
remove eclipse generated equals since it doesn't work. Will add a working equals later
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742837 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 03:02:38 +00:00
William Barker
01ff509885
Fis some problems with equals for OpenInttoDoubleHashmap.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742445 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 12:41:20 +00:00
William Barker
7d4f6893f9
Mostly completing the methods that don't make sense if using a sparse vector in the first place. Initial implementations for equals on the backing store, but it seems it will need more work (since still have to comment out junit tests).
...
Making checkVectorDimensions protected instead of public on all RealVector classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742257 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 04:50:27 +00:00
Phil Steitz
d22f9559e1
Exposed sums of squares.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742145 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 19:30:09 +00:00
Phil Steitz
2f227a6314
Moved matrix equality tests to TestUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@742120 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 15:26:09 +00:00
Luc Maisonobe
94fcce51cd
improved consistency between RealVector and RealMatrix API
...
JIRA: MATH-245
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@740744 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 13:59:50 +00:00
Luc Maisonobe
304ae29268
applied Cyril Briquet's patch (with slight changes) to improve FastFourierTransform efficiency
...
JIRA: MATH-216
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@740400 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 19:59:20 +00:00
Luc Maisonobe
aa0dd1db20
javadoc typo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739957 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 10:30:20 +00:00
William Barker
392f5ccdd3
revert accedental work-in-progress commit
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739910 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:50:53 +00:00
William Barker
e7a7d91384
property sets
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739909 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:42:48 +00:00
William Barker
117175bc83
property sets mostly, some broken method fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739908 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 02:40:27 +00:00
Luc Maisonobe
8ce2128585
added a PolynomialsUtils class providing factory methods for
...
Chebyshev, Hermite, Laguerre and Legendre polynomials
the code was extracted from mantissa and modified
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739840 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 21:13:55 +00:00
Luc Maisonobe
6a965532e6
fixed an error introduced by a recent change in PolynomialsFunction
...
(the coefficients array is automatically reduced if high degree coefficients are null)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739836 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 21:06:55 +00:00
Luc Maisonobe
adc64fb8cf
Added add, subtract, negate, multiply and toString methods to PolynomialFunction
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739834 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 20:56:12 +00:00
William Barker
e8bb7ce937
Adding constructors that allow specifing epsilon.
...
Remove the isZero(int) method, since it is inconsistant with the isZero(double) method, and this class is tightly bound to it's backing store.
Some javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739667 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 00:28:07 +00:00
Sebastian Bazley
d957f434e4
Javadoc typos
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739571 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 15:53:42 +00:00
William Barker
a3b466009f
Initial checkin for the SparseRealVectorClass.
...
I know that it doesn't work 100% with the map*** methods that shouldn't be used with a sparse vector. I'll clean those up shortly (including uncommenting unit tests). Just want to get more eyes on this for the methods that matter.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@739504 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 04:51:17 +00:00
William Barker
bca493b0ea
Adding me to the list
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@738375 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 06:01:02 +00:00
William Barker
5a589042b9
Correct bug that prevents replacing an element while using an iterator
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@738370 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 05:20:31 +00:00
Phil Steitz
bf9c5b292e
Changed FractionFormat to extend NumberFormat. JIRA: MATH-189
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737572 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 19:28:21 +00:00
Phil Steitz
e375464b76
Added 1.2 release.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737518 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 15:03:00 +00:00
Phil Steitz
e58ea4a8e8
Fixed project name.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737426 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 19:51:09 +00:00
Phil Steitz
b5f0d0e102
Replaced maven-generated ant build with standalone version adapted from [io].
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737417 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 18:44:58 +00:00
Phil Steitz
3ffa187429
Eliminated advertised exceptions that are no longer thrown.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737415 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 18:38:33 +00:00
Luc Maisonobe
a11930a607
various javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737161 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:34:32 +00:00
Luc Maisonobe
ead1ffe007
fixed missing word
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737152 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:08:11 +00:00
Luc Maisonobe
90e47e8a4a
fixed missing javadoc parameter
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737151 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:05:56 +00:00
Luc Maisonobe
efb60f8449
fixed wrong subversion directory
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737149 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:04:21 +00:00
Luc Maisonobe
9fea76e338
fixed special xml characters
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737148 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:03:41 +00:00
Phil Steitz
7d54daea2a
Changed NaN comparison tests to use TestUtils.assertSame.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@737011 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:30:27 +00:00