commons-math.git
13 years agoAdded rigging for checking eigenvalues and eigenvectors and some easy test cases. MATH_2_0 MATH_2_0
Phil Steitz [Mon, 1 Dec 2008 01:34:56 +0000 (01:34 +0000)] 
Added rigging for checking eigenvalues and eigenvectors and some easy test cases.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@721943 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed wrong loop bounds
Luc Maisonobe [Fri, 28 Nov 2008 09:25:38 +0000 (09:25 +0000)] 
fixed wrong loop bounds

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@721399 13f79535-47bb-0310-9956-ffa450edef68

13 years agocompleted implementation of EigenDecompositionImpl.
Luc Maisonobe [Thu, 27 Nov 2008 15:50:42 +0000 (15:50 +0000)] 
completed implementation of EigenDecompositionImpl.
The implementation is now based on the very fast and accurate dqd/dqds algorithm.
It is faster than Jama for all dimensions and speed gain increases with dimensions.
The gain is about 30% below dimension 100, about 50% around dimension 250 and about
65% for dimensions around 700.
It is also possible to compute only eigenvalues (and hence saving computation of
eigenvectors, thus even increasing the speed gain).
JIRA: MATH-220

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@721203 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded support for copying statistics
Phil Steitz [Sun, 23 Nov 2008 18:47:50 +0000 (18:47 +0000)] 
Added support for copying statistics
Changes to stats classes:
- copy constructor
- static copy(-,-)
- instance copy()
Added copy() to UnivariateStatistic and StorelessUnivariateStatistic
interfaces.

JIRA: MATH-212
Reported and patched by Jason C. HandUber

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@720030 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded test case to ensure permuting arrays changes hash.
Phil Steitz [Sun, 23 Nov 2008 15:35:11 +0000 (15:35 +0000)] 
Added test case to ensure permuting arrays changes hash.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719995 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded test case to ensure nextPermutation fails for negative arguments.
Phil Steitz [Sun, 23 Nov 2008 14:57:44 +0000 (14:57 +0000)] 
Added test case to ensure nextPermutation fails for negative arguments.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719993 13f79535-47bb-0310-9956-ffa450edef68

13 years agoClarified javadoc for nextPermutation (to match interface).
Phil Steitz [Sun, 23 Nov 2008 14:27:09 +0000 (14:27 +0000)] 
Clarified javadoc for nextPermutation (to match interface).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719991 13f79535-47bb-0310-9956-ffa450edef68

13 years agoReplace hashcode functions with JDK 1.5+ provided impls. Deprecate?
Phil Steitz [Sat, 22 Nov 2008 20:25:27 +0000 (20:25 +0000)] 
Replace hashcode functions with JDK 1.5+ provided impls. Deprecate?

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719909 13f79535-47bb-0310-9956-ffa450edef68

13 years agoJavadoc only.
Phil Steitz [Sat, 22 Nov 2008 20:16:26 +0000 (20:16 +0000)] 
Javadoc only.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719907 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded the following methods to ResizableDoubleArray to support MATH-212
Phil Steitz [Sat, 22 Nov 2008 18:41:40 +0000 (18:41 +0000)] 
Added the following methods to ResizableDoubleArray to support MATH-212
changes to stats classes:
copy constructor
static copy(-,-)
instance copy()
equals and hashcode

JIRA: MATH-212

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@719894 13f79535-47bb-0310-9956-ffa450edef68

13 years agoapplied Cyril Briquet's patch adding an observations removal feature to descriptive...
Luc Maisonobe [Tue, 11 Nov 2008 17:50:05 +0000 (17:50 +0000)] 
applied Cyril Briquet's patch adding an observations removal feature to descriptive statistics
JIRA: MATH-229

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@713093 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed typo
Luc Maisonobe [Tue, 11 Nov 2008 17:24:21 +0000 (17:24 +0000)] 
fixed typo

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@713088 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved error messages
Luc Maisonobe [Sat, 8 Nov 2008 20:42:55 +0000 (20:42 +0000)] 
improved error messages

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712430 13f79535-47bb-0310-9956-ffa450edef68

13 years agoallow chained IOExceptions even before Java 6
Luc Maisonobe [Fri, 7 Nov 2008 16:31:58 +0000 (16:31 +0000)] 
allow chained IOExceptions even before Java 6

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712187 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed a forgotten possible NPE
Luc Maisonobe [Fri, 7 Nov 2008 16:05:50 +0000 (16:05 +0000)] 
fixed a forgotten possible NPE

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712178 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved error messages
Luc Maisonobe [Fri, 7 Nov 2008 14:55:23 +0000 (14:55 +0000)] 
improved error messages

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712144 13f79535-47bb-0310-9956-ffa450edef68

13 years agoleverage null pointer handling,
Luc Maisonobe [Fri, 7 Nov 2008 14:48:13 +0000 (14:48 +0000)] 
leverage null pointer handling,
exception classes can be built using null arguments arrays which
are automatically converted to zero-sized arrays to prevent null pointer exceptions

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712142 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded factory methods to simplify creation of runtime exceptions with helpful messages
Luc Maisonobe [Fri, 7 Nov 2008 14:42:26 +0000 (14:42 +0000)] 
added factory methods to simplify creation of runtime exceptions with helpful messages

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712140 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved forgotten pre-JDK 1.4 stuff
Luc Maisonobe [Fri, 7 Nov 2008 14:35:16 +0000 (14:35 +0000)] 
removed forgotten pre-JDK 1.4 stuff
added protection against null pointer exceptions

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@712136 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded IEEE-754 related useful constants
Luc Maisonobe [Mon, 3 Nov 2008 21:37:51 +0000 (21:37 +0000)] 
added IEEE-754 related useful constants

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@710172 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreplaced RuntimeException by MathRuntimeException
Luc Maisonobe [Mon, 3 Nov 2008 21:36:31 +0000 (21:36 +0000)] 
replaced RuntimeException by MathRuntimeException

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@710171 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved error handling in linear package with finer grained exceptions
Luc Maisonobe [Mon, 3 Nov 2008 21:32:26 +0000 (21:32 +0000)] 
improved error handling in linear package with finer grained exceptions

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@710168 13f79535-47bb-0310-9956-ffa450edef68

13 years agosimplified a javadoc sentence
Luc Maisonobe [Mon, 3 Nov 2008 21:30:07 +0000 (21:30 +0000)] 
simplified a javadoc sentence

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@710167 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremove pre Java 1.4 emulation stuff as we now need at least Java 5
Luc Maisonobe [Mon, 3 Nov 2008 21:28:35 +0000 (21:28 +0000)] 
remove pre Java 1.4 emulation stuff as we now need at least Java 5

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@710166 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded a scalb method in MathUtils.
Luc Maisonobe [Sun, 26 Oct 2008 14:55:45 +0000 (14:55 +0000)] 
Added a scalb method in MathUtils.
This method is similar to the method with same name added in java.lang.Math as of Java 6.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@708001 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed checkstyle warnings
Luc Maisonobe [Thu, 16 Oct 2008 13:32:32 +0000 (13:32 +0000)] 
fixed checkstyle warnings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@705239 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded missing serialVersionUID
Luc Maisonobe [Thu, 16 Oct 2008 12:49:13 +0000 (12:49 +0000)] 
added missing serialVersionUID

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@705231 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreplaced calls to deprecated methods from linear algebra package
Luc Maisonobe [Thu, 16 Oct 2008 11:34:38 +0000 (11:34 +0000)] 
replaced calls to deprecated methods from linear algebra package

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@705211 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved unneeded import statements
Luc Maisonobe [Thu, 16 Oct 2008 11:33:21 +0000 (11:33 +0000)] 
removed unneeded import statements

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@705210 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixed error in javadoc.
Phil Steitz [Sun, 12 Oct 2008 13:50:35 +0000 (13:50 +0000)] 
Fixed error in javadoc.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@703818 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a first version of eigen decomposition implementation
Luc Maisonobe [Sun, 5 Oct 2008 22:38:13 +0000 (22:38 +0000)] 
added a first version of eigen decomposition implementation
this version is not finished yet, but it does work when
eigenvalues are well separated and is faster than JAMA for
dimensions above 100.
It still needs work as the MRRR algorithm is not implemented
yet (only the basic parts with twisted factorization is there).
I continue working on this, but wanted to have a first version
committed to let people play with it and as a basis for comparison.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701897 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded methods to operate directly on double arrays
Luc Maisonobe [Sun, 5 Oct 2008 20:37:15 +0000 (20:37 +0000)] 
added methods to operate directly on double arrays

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701883 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved unneeded multiplications by zero by separating
Luc Maisonobe [Sun, 5 Oct 2008 19:16:18 +0000 (19:16 +0000)] 
removed unneeded multiplications by zero by separating
the first iteration from the following ones in a loop
(once again ...)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701857 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved unneeded multiplications by zero by separating
Luc Maisonobe [Sun, 5 Oct 2008 19:12:05 +0000 (19:12 +0000)] 
removed unneeded multiplications by zero by separating
the first iteration from the following ones in a loop

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701852 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreplaced an intermediate variable by its opposite for easier to read expression
Luc Maisonobe [Sun, 5 Oct 2008 18:53:18 +0000 (18:53 +0000)] 
replaced an intermediate variable by its opposite for easier to read expression

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701846 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a test ensuring the part of the symmetric matrix below the diagonal is never...
Luc Maisonobe [Sun, 5 Oct 2008 15:37:02 +0000 (15:37 +0000)] 
added a test ensuring the part of the symmetric matrix below the diagonal is never used

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701810 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved javadoc
Luc Maisonobe [Sun, 5 Oct 2008 15:36:20 +0000 (15:36 +0000)] 
improved javadoc

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701809 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed typo
Luc Maisonobe [Sat, 4 Oct 2008 13:43:57 +0000 (13:43 +0000)] 
fixed typo

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@701642 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded interfaces for eigen decomposition and for singular value decomposition
Luc Maisonobe [Tue, 30 Sep 2008 15:09:17 +0000 (15:09 +0000)] 
added interfaces for eigen decomposition and for singular value decomposition
the implementation for this interfaces is not ready yet, but it seems
important to show what the interface will look like.
JIRA: MATH-220

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@700492 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved javadoc
Luc Maisonobe [Tue, 30 Sep 2008 15:05:10 +0000 (15:05 +0000)] 
improved javadoc

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@700491 13f79535-47bb-0310-9956-ffa450edef68

13 years agoupdated userguide after deprecation of internal LU decomposition in linear algebra
Luc Maisonobe [Tue, 30 Sep 2008 07:15:05 +0000 (07:15 +0000)] 
updated userguide after deprecation of internal LU decomposition in linear algebra

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@700367 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a transformer from symmetric matrix to tri-diagonal matrix
Luc Maisonobe [Mon, 29 Sep 2008 21:47:41 +0000 (21:47 +0000)] 
added a transformer from symmetric matrix to tri-diagonal matrix
(this is only for internal purposes only yet, it will be used later)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@700272 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed indentation (sorry)
Luc Maisonobe [Sun, 28 Sep 2008 16:31:33 +0000 (16:31 +0000)] 
fixed indentation (sorry)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699857 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed an matrix mismatch error
Luc Maisonobe [Sun, 28 Sep 2008 16:28:50 +0000 (16:28 +0000)] 
fixed an matrix mismatch error

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699855 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a getQT() method to QRDecomposition interface
Luc Maisonobe [Sun, 28 Sep 2008 16:17:41 +0000 (16:17 +0000)] 
added a getQT() method to QRDecomposition interface
compute Q by transposing QT rather than the other way round for efficiency
JIRA: MATH-223

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699850 13f79535-47bb-0310-9956-ffa450edef68

13 years agoslight optimization:
Luc Maisonobe [Sun, 28 Sep 2008 15:59:14 +0000 (15:59 +0000)] 
slight optimization:
cached pointers to row vectors from double arrays
wherever the same row was used in a loop, to avoid
double index computation/range check

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699846 13f79535-47bb-0310-9956-ffa450edef68

13 years agoReplaced internal LU-decomposition by the external class.
Luc Maisonobe [Sun, 28 Sep 2008 15:55:15 +0000 (15:55 +0000)] 
Replaced internal LU-decomposition by the external class.
Deprecated the direct call to these methods as users should
really be able to choose the type of solver they want.
LU-decomposition is only one possibility among others like
QR-decomposition.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699845 13f79535-47bb-0310-9956-ffa450edef68

13 years agopulled some solve-related methods higher in the classes hierarchy
Luc Maisonobe [Sun, 28 Sep 2008 15:51:47 +0000 (15:51 +0000)] 
pulled some solve-related methods higher in the classes hierarchy
(isNonSinglular(), getInverse())

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699844 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixed error in javadoc added in r699704
Phil Steitz [Sun, 28 Sep 2008 02:07:19 +0000 (02:07 +0000)] 
Fixed error in javadoc added in r699704
JIRA: MATH-207

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699762 13f79535-47bb-0310-9956-ffa450edef68

13 years agoEliminated the "mutation requirement" in nextGeneration method.
Phil Steitz [Sat, 27 Sep 2008 18:05:19 +0000 (18:05 +0000)] 
Eliminated the "mutation requirement" in nextGeneration method.
Added algorithm description in javadoc.
JIRA: MATH-207
Reported and patched by David Stefka

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699704 13f79535-47bb-0310-9956-ffa450edef68

13 years agopropagated trunk changes from r699157 into branch 2.0
Luc Maisonobe [Fri, 26 Sep 2008 19:51:13 +0000 (19:51 +0000)] 
propagated trunk changes from r699157 into branch 2.0
MATH-227.  fixed F distribution inverse CDF computation for small denominator degrees of freedom.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@699468 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixed an error in CorrelatedRandomVectorGenerator leading to a component of the gener...
Luc Maisonobe [Tue, 16 Sep 2008 21:00:28 +0000 (21:00 +0000)] 
Fixed an error in CorrelatedRandomVectorGenerator leading to a component of the generated vector being constant
JIRA: MATH-226

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@696054 13f79535-47bb-0310-9956-ffa450edef68

13 years agoGreatly improved QR-decomposition speed using transposed matrices internally
Luc Maisonobe [Sun, 14 Sep 2008 16:38:11 +0000 (16:38 +0000)] 
Greatly improved QR-decomposition speed using transposed matrices internally
JIRA: MATH-223

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@695251 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixed an infinite loop encountered in some backward integration cases for ODE solvers
Luc Maisonobe [Thu, 11 Sep 2008 09:57:11 +0000 (09:57 +0000)] 
Fixed an infinite loop encountered in some backward integration cases for ODE solvers

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@694197 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded beta distribution
Luc Maisonobe [Wed, 10 Sep 2008 19:55:08 +0000 (19:55 +0000)] 
added beta distribution
JIRA: MATH-222

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@693959 13f79535-47bb-0310-9956-ffa450edef68

13 years agodistribution factory was removed after 1.2 release
Luc Maisonobe [Wed, 10 Sep 2008 19:53:40 +0000 (19:53 +0000)] 
distribution factory was removed after 1.2 release

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@693957 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed typo
Luc Maisonobe [Wed, 10 Sep 2008 14:51:12 +0000 (14:51 +0000)] 
fixed typo

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@693862 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded Ted Dunning to the list of contributors (for probability density functions)
Luc Maisonobe [Tue, 9 Sep 2008 20:59:01 +0000 (20:59 +0000)] 
added Ted Dunning to the list of contributors (for probability density functions)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@693607 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded probability density functions computation for distributions for which it is...
Luc Maisonobe [Tue, 9 Sep 2008 20:37:08 +0000 (20:37 +0000)] 
Added probability density functions computation for distributions for which it is feasible
JIRA: MATH-222

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@693598 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded matrix transformer to bi-diagonal shape
Luc Maisonobe [Wed, 3 Sep 2008 09:18:29 +0000 (09:18 +0000)] 
added matrix transformer to bi-diagonal shape
(for later use by singular value decomposition)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@691551 13f79535-47bb-0310-9956-ffa450edef68

13 years agotypos
Luc Maisonobe [Mon, 1 Sep 2008 11:42:08 +0000 (11:42 +0000)] 
typos

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@690941 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved spurious throws clause
Luc Maisonobe [Mon, 1 Sep 2008 10:42:28 +0000 (10:42 +0000)] 
removed spurious throws clause

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@690934 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a decompose method to the base DecompositionSolver interface
Luc Maisonobe [Sun, 31 Aug 2008 22:28:55 +0000 (22:28 +0000)] 
added a decompose method to the base DecompositionSolver interface
to allow a solver to decompose a matrix after construction.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@690803 13f79535-47bb-0310-9956-ffa450edef68

13 years agoChanged the equals() methods from RealMatrixImpl, RealVectorImpl and Vector3D
Luc Maisonobe [Fri, 29 Aug 2008 16:17:33 +0000 (16:17 +0000)] 
Changed the equals() methods from RealMatrixImpl, RealVectorImpl and Vector3D
so that they consider +0 and -0 are equal, as required by IEEE-754 standard.
These were bugs similar to MATH-221 for Complex.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@690314 13f79535-47bb-0310-9956-ffa450edef68

13 years agoChanged the Complex.equals() method so that it considers +0 and -0 are equal,
Luc Maisonobe [Fri, 29 Aug 2008 15:46:22 +0000 (15:46 +0000)] 
Changed the Complex.equals() method so that it considers +0 and -0 are equal,
as required by IEEE-754 standard.
JIRA: MATH-221

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@690308 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded JAMA-like LU-decomposition
Luc Maisonobe [Thu, 21 Aug 2008 00:19:48 +0000 (00:19 +0000)] 
added JAMA-like LU-decomposition

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@687519 13f79535-47bb-0310-9956-ffa450edef68

13 years agoUpgrade to latest clirr plugin version 2.2.2 (fixes problem downloading the old artif...
Niall Pemberton [Wed, 20 Aug 2008 12:56:47 +0000 (12:56 +0000)] 
Upgrade to latest clirr plugin version 2.2.2 (fixes problem downloading the old artifact from the repo)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@687302 13f79535-47bb-0310-9956-ffa450edef68

13 years agoStarted work on JAMA-like interfaces.
Luc Maisonobe [Tue, 19 Aug 2008 21:41:17 +0000 (21:41 +0000)] 
Started work on JAMA-like interfaces.
This first step is an enhancement of the existing QR-decomposition interface and associated implementation in JAMA-style, i.e with added getH() method and most importantly various solve methods for least-squares solution of the A * X = B equation.
JIRA: MATH-220

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@687167 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded removeData methods to the SimpleRegression class.
Luc Maisonobe [Tue, 19 Aug 2008 11:18:10 +0000 (11:18 +0000)] 
added removeData methods to the SimpleRegression class.
This allows to support regression calculations across a
sliding window of (time-based) observations without having
to recalculate for the entire window every time.
JIRA: MATH-219

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@687021 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed typo
Luc Maisonobe [Wed, 6 Aug 2008 22:38:28 +0000 (22:38 +0000)] 
fixed typo

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@683434 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded createRealVector for consistency with Matrix factory methods
Luc Maisonobe [Sun, 3 Aug 2008 16:12:48 +0000 (16:12 +0000)] 
added createRealVector for consistency with Matrix factory methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@682190 13f79535-47bb-0310-9956-ffa450edef68

13 years agoSupport for one dimensional vectors has been added to the linear algebra
Luc Maisonobe [Sun, 27 Jul 2008 19:48:17 +0000 (19:48 +0000)] 
Support for one dimensional vectors has been added to the linear algebra
package with a RealVector interface, a RealVectorImpl default implementation
using a single double array to store elements and a RealVectorFormat class for
input/output.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680172 13f79535-47bb-0310-9956-ffa450edef68

13 years agoSupport for one dimensional vectors has been added to the linear algebra
Luc Maisonobe [Sun, 27 Jul 2008 19:15:22 +0000 (19:15 +0000)] 
Support for one dimensional vectors has been added to the linear algebra
package with a RealVector interface, a RealVectorImpl default implementation
using a single double array to store elements and a RealVectorFormat class for
input/output.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680166 13f79535-47bb-0310-9956-ffa450edef68

13 years agoJavadoc fixes.
Phil Steitz [Sun, 27 Jul 2008 19:11:33 +0000 (19:11 +0000)] 
Javadoc fixes.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680165 13f79535-47bb-0310-9956-ffa450edef68

13 years agoChanged OLSMultipleLinearRegression implementation to use QR decomposition to
Phil Steitz [Sun, 27 Jul 2008 18:52:38 +0000 (18:52 +0000)] 
Changed OLSMultipleLinearRegression implementation to use QR decomposition to
solve the normal equations.
JIRA: MATH-217

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680162 13f79535-47bb-0310-9956-ffa450edef68

13 years agoupdated minimum java version required
Luc Maisonobe [Sun, 27 Jul 2008 16:28:43 +0000 (16:28 +0000)] 
updated minimum java version required

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680144 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved explanation of NaN coordinates
Luc Maisonobe [Sun, 27 Jul 2008 15:17:37 +0000 (15:17 +0000)] 
improved explanation of NaN coordinates

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680123 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed javadoc
Luc Maisonobe [Sun, 27 Jul 2008 15:11:43 +0000 (15:11 +0000)] 
fixed javadoc

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680121 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed javadoc comments pasted from ComplexFormat without care
Luc Maisonobe [Sun, 27 Jul 2008 14:34:37 +0000 (14:34 +0000)] 
fixed javadoc comments pasted from ComplexFormat without care

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680113 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed typo
Luc Maisonobe [Sun, 27 Jul 2008 14:30:43 +0000 (14:30 +0000)] 
fixed typo

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680111 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreverting a return type changed inadvertently
Luc Maisonobe [Sat, 26 Jul 2008 20:00:29 +0000 (20:00 +0000)] 
reverting a return type changed inadvertently

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680036 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded in user guide a reference to the Vector3DFormat class for input/output.
Luc Maisonobe [Sat, 26 Jul 2008 19:47:56 +0000 (19:47 +0000)] 
added in user guide a reference to the Vector3DFormat class for input/output.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680034 13f79535-47bb-0310-9956-ffa450edef68

13 years agofiltered out findbugs warnings for intentional and documented features
Luc Maisonobe [Sat, 26 Jul 2008 19:35:35 +0000 (19:35 +0000)] 
filtered out findbugs warnings for intentional and documented features

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680032 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded a Vector3DFormat class
Luc Maisonobe [Sat, 26 Jul 2008 18:31:41 +0000 (18:31 +0000)] 
added a Vector3DFormat class

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680029 13f79535-47bb-0310-9956-ffa450edef68

13 years agoextracted a CompositeFormat base class from ComplexFormat
Luc Maisonobe [Sat, 26 Jul 2008 18:28:45 +0000 (18:28 +0000)] 
extracted a CompositeFormat base class from ComplexFormat

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@680026 13f79535-47bb-0310-9956-ffa450edef68

13 years agochange commons-parent to version 11
Niall Pemberton [Mon, 21 Jul 2008 17:45:31 +0000 (17:45 +0000)] 
change commons-parent to version 11

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@678500 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed javadoc related checkstyle errors
Luc Maisonobe [Tue, 15 Jul 2008 11:53:23 +0000 (11:53 +0000)] 
fixed javadoc related checkstyle errors

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676891 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremoved false comment
Luc Maisonobe [Tue, 15 Jul 2008 11:34:46 +0000 (11:34 +0000)] 
removed false comment
(coefficients are not cached, they are computed for each new instance)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676882 13f79535-47bb-0310-9956-ffa450edef68

13 years agoNew ODE integrators have been added: the explicit Adams-Bashforth and implicit
Luc Maisonobe [Mon, 14 Jul 2008 21:13:23 +0000 (21:13 +0000)] 
New ODE integrators have been added: the explicit Adams-Bashforth and implicit
Adams-Moulton multistep methods. These methods support customizable starter
integrators and support discrete events even during the start phase.
All these methods provide the same rich features has the existing ones:
continuous output, step handlers, discrete events, G-stop ...

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676737 13f79535-47bb-0310-9956-ffa450edef68

13 years agopreparing test to work with multistep integrators
Luc Maisonobe [Mon, 14 Jul 2008 15:16:11 +0000 (15:16 +0000)] 
preparing test to work with multistep integrators

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676622 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed test which did not bounce properly when convergence setting was low
Luc Maisonobe [Mon, 14 Jul 2008 15:14:42 +0000 (15:14 +0000)] 
fixed test which did not bounce properly when convergence setting was low

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676620 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed a problem preventing integration stop when end time was exactly 0
Luc Maisonobe [Mon, 14 Jul 2008 15:12:36 +0000 (15:12 +0000)] 
fixed a problem preventing integration stop when end time was exactly 0

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676618 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed step size handling in borderline cases.
Luc Maisonobe [Mon, 14 Jul 2008 15:08:51 +0000 (15:08 +0000)] 
fixed step size handling in borderline cases.
When an even occurred at step start, the step size dropped to zero
which put integration in an infinite loop

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676615 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixedStepHandler now extends Serializable.
Luc Maisonobe [Mon, 14 Jul 2008 14:58:57 +0000 (14:58 +0000)] 
FixedStepHandler now extends Serializable.
This should have been done before when the integrator and problem
interfaces were changed too, but was forgotten.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676612 13f79535-47bb-0310-9956-ffa450edef68

13 years agoimproved robustness in case of events just at integration start
Luc Maisonobe [Mon, 14 Jul 2008 14:51:33 +0000 (14:51 +0000)] 
improved robustness in case of events just at integration start

When an event occurs exactly at integration start, the first truncated
steps ends up with zero size. This induced problems with forward/backward
sensing based on this step alone. This also induced an infinite loop in
the calling integrators.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676610 13f79535-47bb-0310-9956-ffa450edef68

13 years agofixed a problem introduced by recent changes,
Luc Maisonobe [Sun, 13 Jul 2008 09:55:01 +0000 (09:55 +0000)] 
fixed a problem introduced by recent changes,
thanks to Phil to spot it

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676291 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRefactored data specification in multiple regression api. JIRA: MATH-255. Patched...
Phil Steitz [Sat, 12 Jul 2008 21:41:17 +0000 (21:41 +0000)] 
Refactored data specification in multiple regression api. JIRA: MATH-255.  Patched by Mauro Televi.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@676241 13f79535-47bb-0310-9956-ffa450edef68

13 years agoSimplified integration end handling using the same method as other integrators
Luc Maisonobe [Thu, 10 Jul 2008 14:22:13 +0000 (14:22 +0000)] 
Simplified integration end handling using the same method as other integrators
(based on a dedicated event handler)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@675589 13f79535-47bb-0310-9956-ffa450edef68

13 years agoprevent zero-length steps from generating NaN
Luc Maisonobe [Thu, 10 Jul 2008 14:06:17 +0000 (14:06 +0000)] 
prevent zero-length steps from generating NaN

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@675578 13f79535-47bb-0310-9956-ffa450edef68

13 years agoupdated test after step handling changes
Luc Maisonobe [Thu, 10 Jul 2008 14:05:01 +0000 (14:05 +0000)] 
updated test after step handling changes

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@675576 13f79535-47bb-0310-9956-ffa450edef68