Luc Maisonobe
815cb8949d
putting the <project> tag on one line as recommended by the commons wiki
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@667869 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 19:30:44 +00:00
Luc Maisonobe
d056eaadab
replaced inefficient use of constructors for Integer, Long, Float and Double
...
by the recommended static valueOf methods that cache results
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@666292 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 19:32:52 +00:00
Luc Maisonobe
71174b5602
fixed a type error in array parameter
...
(String[] instead of Object[] as in super constructor ... and all other exceptions)
fixed a typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@666287 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 19:21:24 +00:00
Luc Maisonobe
1786844fd7
Improved usability of the geometry package.
...
From a developer point of view, all the changes are related.
From a user point of view, they are independent changes.
- added several convenience methods for Vector3D and Rotation
- replaced public no argument constructors with IDENTITY or ZERO
static instances for immutable classes Vector3D and Rotation
- fixed inconsistencies in the naming scheme for static fields in
Vector3D and Rotation with respect to the overall library
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@665700 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 14:17:21 +00:00
Phil Steitz
d09e4819be
Added some initial tests for regression parameters and residuals.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@664602 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 01:57:42 +00:00
Phil Steitz
fb0a36c7ab
Added some initial OLS multiple regression tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@664519 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 15:52:20 +00:00
Phil Steitz
78cb3a131d
Support NaN, na, NULL values in assertEquals.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@664513 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 15:29:46 +00:00
Luc Maisonobe
2b8b57d394
changed fields visibility to protected,
...
to allow users to extend the implementation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@662538 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 19:53:37 +00:00
Luc Maisonobe
d60d53526d
avoid array copy
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@662274 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 19:40:16 +00:00
Luc Maisonobe
482ebca8f5
Improved linear RealMatrixImpl and BigMatrixImpl performances.
...
The main changes are the following ones:
- use directly the storage array when possible for
diadic operations (add, subtract, multiply), as
suggested by Phil, this avoids the cost of the
generic getEntry method
- replaced custom indices checks by simple use of
the JVM checks and ArrayIndexOutOfBoundException
- put row arrays reference in local variables to
avoid multiple checks in double loops
- use final variables where possible
- removed unneeded array copying
- added a constructor to build a matrix from an
array without copying it where it makes sense
The speed gain is about 3X for multiplication. Performances
for this operation are now on par with Jama.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@662241 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 16:22:19 +00:00
Luc Maisonobe
7e7207cd4f
typo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@661042 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 18:40:38 +00:00
Niall Pemberton
beae2e9891
COMMONSSITE-30 - fix the checkstyle configuration to work for multi-module and review/update <reporting> plugin version numbers for the poms being changed.
...
- pom's need to use ${basedir} for configuration files as the multi-module profile is run from commons-parent, so if not specified it can't find those files
- the checkstyle configuration file needs to use ${checkstyle.header.file} for the headerFile property and <headerFile> element added to the plugin config in the pom.xml
- fix m1 checkstyle config to reflect the above where appropriate (specify header file property)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@659441 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:14:37 +00:00
Luc Maisonobe
93a8bb4f13
Configured checkstyle to stop complaining about incomplete Javadoc in some very specific cases.
...
This problem has been discussed previously here:
http://markmail.org/message/pmbiyiqssjesq7tm
The solution implemented with this modification is to configure checkstyle
in such a way the errors can be filtered out using dedicated comments in the
source code:
// CHECKSTYLE: stop JavadocMethodCheck
// a bunch of functions known to trigger warnings
// that we explicitly REFUSE to fix
// CHECKSTYLE: resume JavadocMethodCheck
The checks are still performed normally in file parts not bracketed by
these comments. Hence the first few methods in o.a.c.m.stat.inference.TestUtils are
still checked for correct javadoc, and only for the last ones in the same files
are the checks relaxed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@658671 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 12:58:15 +00:00
Luc Maisonobe
69af448345
added error handling for multiple linear-regression
...
added documentation for multiple linear-regression
JIRA: MATH-203
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@658645 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 12:13:27 +00:00
Luc Maisonobe
c9661749db
changed groupId from commons-math to org.apache.commons
...
as suggested in http://markmail.org/message/hxdsteovws7lalsa
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657736 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 07:13:41 +00:00
Luc Maisonobe
4efb735b1d
set up svn:keywords property as the other java files
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657633 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 20:35:25 +00:00
Luc Maisonobe
0a2cd04fef
fixed many checkstyle errors about javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657629 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 20:21:23 +00:00
Luc Maisonobe
4e50bbcb90
Replaced Raw types by Parameterized types where appropriate.
...
The various ArrayList, HashSet and HashMap used in math have
be restricted to the content they are intended for.
This removes lots of warnings that have appeared after the
switch to Java 5, and improves safety (for example the categories
used by OneWayAnova are guaranteed to be double arrays at compile
time).
Two difficult cases where not handled here: the Frequency class
and the Fitness interface. The first one mixes types and needs to
be studied before any change is attempted. The second one generates
some side effects on the overall package which is still under development.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657612 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 19:37:23 +00:00
Luc Maisonobe
f8b2fa71fb
fixed javadoc links
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657572 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 15:20:00 +00:00
Luc Maisonobe
ec56c2c5ff
added missing newline at end of file
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657571 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 15:18:32 +00:00
Luc Maisonobe
21872adbf8
added Mauro's patch to support multiple regression
...
there is still some work to do on this new feature
JIRA: MATH-203
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657570 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 15:05:29 +00:00
Luc Maisonobe
6ebc980cbc
changed minimum java platform version to Java5
...
this change was discussed in the following thread:
http://markmail.org/message/3v5imgkeh72ypm5v
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@657568 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 15:00:52 +00:00
Phil Steitz
dca7fe58ee
Updated javadoc links.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651868 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 23:15:48 +00:00
Luc Maisonobe
03b9e6771e
added a way to handle errors in user-defined switching functions
...
previously, only the function evaluation could trigger errors,
not the other functions of the interface
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651514 13f79535-47bb-0310-9956-ffa450edef68
2008-04-25 07:25:58 +00:00
Luc Maisonobe
de621a4151
added the getSwitchingFunctions and clearSwitchingfunctions to the integrator interface
...
JIRA: MATH-202
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651282 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 14:44:00 +00:00
Luc Maisonobe
9b8972d209
removed references to discovery
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651280 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 14:40:29 +00:00
Luc Maisonobe
bd162ca7d4
announced a whole bunch of deprecation removals
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651262 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:31:19 +00:00
Luc Maisonobe
8c206f6225
removed deprecated methods
...
this does not belong to commons-math yet, but will probably be merged some day
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651259 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:25:06 +00:00
Luc Maisonobe
c29768da8d
removed the deprecated getIdentity method
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651256 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:22:14 +00:00
Luc Maisonobe
ef5946618c
removed deprecated implementations
...
the implementation is now in the base class, and can be modified by setter injection
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651254 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:20:53 +00:00
Luc Maisonobe
93c0636cb6
removed deprecated exceptions constructors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651252 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:17:30 +00:00
Luc Maisonobe
4c7e51fd41
removed factories
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651251 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:13:31 +00:00
Luc Maisonobe
6c76ad2d07
removed tests on removed deprecated methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651250 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 13:06:21 +00:00
Luc Maisonobe
5c6f299aec
removed deprecated functions that have been moved to the Complex class itself
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651249 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:57:17 +00:00
Luc Maisonobe
ed9ea97ac2
changed the field TOO_SMALL from protected to private static
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651244 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:29:41 +00:00
Luc Maisonobe
ae31d86b8b
changed an internal test class to private static, for the sake of cleanliness
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651243 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:27:14 +00:00
Luc Maisonobe
35a40c78ea
removed dependency on discovery
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651235 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:11:21 +00:00
Luc Maisonobe
46dd0a7d93
removed dependency on discovery
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651234 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:10:35 +00:00
Luc Maisonobe
cffe7c6cc6
removed deprecated factory methods and classes
...
they were replaced by setter injection as of 1.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651230 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:04:33 +00:00
Luc Maisonobe
5ae0852fe0
replaced deprecated protected real/imaginary fields by private final fields
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651228 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 12:01:59 +00:00
Luc Maisonobe
7025c49ef3
configured pom for development in branch 2.0
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651203 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 09:17:37 +00:00
Luc Maisonobe
fa012ac9c2
branching for initial work on 2.0
...
starting from a copy of trunk, shortly after 1.2 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651200 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 09:03:43 +00:00
Brent Worden
de2965f24c
MATH-201. Fixed truncation error in t-test classes for large t values.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@645193 13f79535-47bb-0310-9956-ffa450edef68
2008-04-06 01:25:08 +00:00
Brent Worden
edbf811194
set subversion properties on new files.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@643028 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 15:39:17 +00:00
Brent Worden
9e8037518e
added beginning of genetics framework.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@643027 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 15:37:16 +00:00
Luc Maisonobe
2c443ab8b0
fixed crashes in AbstractEstimator when some parameters are bound.
...
getCovariances() and guessParametersErrors() now only give result
about unbound parameters
JIRA: MATH-200
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@642357 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 20:06:54 +00:00
Luc Maisonobe
b736c8bda6
removed warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@640206 13f79535-47bb-0310-9956-ffa450edef68
2008-03-23 13:46:40 +00:00
Luc Maisonobe
5f13efdba8
added an error message for Levenberg-Marquardt
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@640205 13f79535-47bb-0310-9956-ffa450edef68
2008-03-23 13:37:04 +00:00
Luc Maisonobe
faead6c3fb
detect numerical problems in Q.R decomposition for Levenberg-Marquardt estimator
...
and report them appropriately
JIRA: MATH-199
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@640204 13f79535-47bb-0310-9956-ffa450edef68
2008-03-23 13:36:03 +00:00
Luc Maisonobe
cd5f65c4c7
added an error detection for missing imaginary character while parsing complex string
...
JIRA: MATH-198
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@640191 13f79535-47bb-0310-9956-ffa450edef68
2008-03-23 12:22:59 +00:00