Commit Graph

4204 Commits

Author SHA1 Message Date
Phil Steitz 9e2e73e4ec Added missing throws declarations, suppressed warnings. JIRA: MATH-854.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382389 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 01:47:34 +00:00
Phil Steitz 11bc47878c Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382382 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:56:11 +00:00
Phil Steitz 66dece126a Clarified definition of isSupportXxxBoundInclusive in RealDistribution interface,
made code consistent with the definition, and deprecated these methods, marking
for removal in 4.0.
JIRA: MATH-859


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382380 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:15:32 +00:00
Phil Steitz 2d2912e4a1 Eliminated no longer accurate implementation reference.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382335 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:48:08 +00:00
Phil Steitz ae26b9bf23 Added throws declarations, improved javadoc, made Kurtosis increment consistent with other moment statistics. JIRA: MATH-854.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:27:47 +00:00
Gilles Sadowski b8f2fb815f MATH-854
Populate "throws" clause.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382197 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 22:35:01 +00:00
Gilles Sadowski ac597cc172 MATH-855 (second take).
Best point must be returned.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382070 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 15:43:40 +00:00
Sebastien Brisard ad923872f3 MATH-854: fill the "throws" clause of OpenMapRealVector.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381730 13f79535-47bb-0310-9956-ffa450edef68
2012-09-06 19:42:35 +00:00
Gilles Sadowski d3cfd50cfc Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381410 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 21:52:42 +00:00
Thomas Neidhart 86321681e7 Add throw declarations for filter package, javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 20:06:07 +00:00
Thomas Neidhart 5082325771 Javadoc formatting cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381310 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 19:22:17 +00:00
Luc Maisonobe 366d796c36 Added throw declarations for package dfp.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381285 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:28 +00:00
Luc Maisonobe 54d00b13c6 Added throw declarations for package complex.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381284 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:08 +00:00
Luc Maisonobe 1dd611f794 Added throw declarations for package util.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381283 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:29:47 +00:00
Luc Maisonobe 003f022df4 Added throw declarations for FieldElements.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381282 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:23:54 +00:00
Gilles Sadowski 52582d8c45 Update for MATH-841 and MATH-855.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:51:46 +00:00
Gilles Sadowski 68fe06032a MATH-841
Performance improvement in method "gcd(int, int)" (~2 to 4 times faster than
the previous implementation). Thanks to Sebastien Riou.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381206 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:46:59 +00:00
Gilles Sadowski 350f726ce5 MATH-855
The best point is sometimes not the last one evaluated.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381195 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:22:44 +00:00
Phil Steitz 04b34cc1a5 Added density - cdf consistency test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381029 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 06:53:45 +00:00
Sebastien Brisard 8a0fef0fb7 MATH-854: fill the throws clause of all methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380444 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 04:10:09 +00:00
Sebastien Brisard 4e7d797b1c MATH-854: fill the throws clause of all methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380440 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 03:08:31 +00:00
Sebastien Brisard 56a22909a1 MATH-854: populate the throws clause in package o.a.c.m.linear.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380122 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 03:54:23 +00:00
Luc Maisonobe 9e933debcb Populate throws declarations for geometry package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379977 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:22:52 +00:00
Luc Maisonobe e8e94f5936 populate throws declaration for ODE package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379975 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:21:00 +00:00
Luc Maisonobe 46d95b23ff Updated error message with new parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379974 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:55 +00:00
Luc Maisonobe 449f2d4f79 Javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379973 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:10 +00:00
Gilles Sadowski 98e56e813d "final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379905 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:56:50 +00:00
Gilles Sadowski aa79abed6d MATH-854
Populate "throws" clause.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379904 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:54:52 +00:00
Gilles Sadowski 0af91ecfbe MATH-854
Populate "throws" clause.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379560 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 19:40:30 +00:00
Sebastien Brisard 86f09b3e1f MATH-849: added new test in GammaDistributionTest to check that new
implementation of Gamma.logGamma does not compromise the resolution of
MATH-735.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379271 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:14:03 +00:00
Sebastien Brisard aa2da41c68 MATH-849: changed boundary case x = 8.0 in double Gamma.logGamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379270 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:12:16 +00:00
Sebastien Brisard 4a15003955 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379262 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:51:24 +00:00
Sebastien Brisard cf1f553dc6 MATH-849: implementation of double Gamma.gamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379261 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:48:29 +00:00
Sebastien Brisard c1c7da271b MATH-849: further tests of double Gamma.logGamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379256 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:13:25 +00:00
Sebastien Brisard c4f81a87ee MATH-849: unit tests for double Gamma.logGamma1p(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379255 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:01:11 +00:00
Sebastien Brisard 1398a16c7c Formatting (removed Eclipse tags @formatter:on, @formatter:off)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379254 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:59:12 +00:00
Sebastien Brisard 99a9552531 MATH-849: unit tests for double Gamma.invGamma1pm1(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:57:50 +00:00
Sebastien Brisard 8a3dd3725f Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379252 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:53:19 +00:00
Sebastien Brisard 74b5b44868 MATH-849: refined the test of logGamma(x) near x = 1.0, 2.0 and 3.0, which
were difficult zones in the previous (Lanczos) implementation.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379247 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:31:47 +00:00
Gilles Sadowski 8170e47c22 MATH-854
Populate "throws" clause.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379218 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 23:18:57 +00:00
Sebastien Brisard b6bf913d14 MATH-849: new implementation of double Gamma.logGamma(double x) for x < 8.0.
This greatly improves the accurarcy, from more than 130 ulps down to 3 ulps.
Unit tests updated accordingly.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378450 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 06:20:21 +00:00
Sebastien Brisard 6d0dcae172 In GammaDistributionTest, inlined previous implementation of
double Gamma.logGamma(doubl)) in order to allow for comparison with new
implementation.
This is in preparation of MATH-849.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378440 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 04:28:47 +00:00
Gilles Sadowski f394970a17 Re-instated "dotProduct" method whose removal breaks backward compatibility.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378083 13f79535-47bb-0310-9956-ffa450edef68
2012-08-28 11:35:35 +00:00
Thomas Neidhart 74cf48bee7 Fixed typo, indentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377302 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 14:11:42 +00:00
Luc Maisonobe c768e7288a Integrated the new differentiation framework in the solvers package.
As discussed on the developers mailing list, a separate
NewtonRaphsonSolver has been set up using the new interfaces, and the
older NewtonSolver has been deprecated. It should be removed in 4.0.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377245 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:06:00 +00:00
Luc Maisonobe f3f5800a4c Removed compilation warnings related to deprecated classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377244 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:05:13 +00:00
Sebastien Brisard e9b6a4ffb3 In Gamma.logGamma, replaced local variable g with class variable LANCZOS_G.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1376835 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 06:23:34 +00:00
Phil Steitz 7b1b5e529c Added deprecation that should have been included in r1375192. JIRA: MATH-850.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1375722 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 19:17:56 +00:00
Phil Steitz 2c8cfb1aa7 Added RandomDataGenerator to replace RandomDataImpl and deprecated
RandomData interface and RandomDataImpl class. Deprecated
nextInversionDeviate methods from RandomDataImpl class. Ensured that
all nextXxx methods in RandomDataImpl/RandomDataGenerator use the
configured RandomGenerator.

JIRA: MATH-850

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1375192 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 19:53:57 +00:00
Sebastien Brisard 74d366c819 MATH-849: new unit test showing the relative accuracy of
Gamma.logGamma(double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374909 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 03:40:58 +00:00