Commit Graph

4341 Commits

Author SHA1 Message Date
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
Luc Maisonobe f936520bfa use the new function objects were possible in tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374632 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:11:11 +00:00
Luc Maisonobe 4fd62ba05b the regular function objects (Acos, Sqrt, ...) now implement the new UnivariateDifferentiable interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374631 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:10:34 +00:00
Luc Maisonobe 63d00ba803 Polynomials now implement the new UnivariateDifferentiable interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374630 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:09:45 +00:00
Luc Maisonobe 09463e6705 added utilities for differentiable functions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374629 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:09:21 +00:00
Luc Maisonobe 93d37df3b3 renamed UnivariateDifferential into UnivariateDifferentiable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374628 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:57 +00:00
Luc Maisonobe f175f37038 Typo in comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374627 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:29 +00:00
Luc Maisonobe f3f3fc2595 Added compose to the public API of DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374626 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:02 +00:00
Gilles Sadowski b23e1c330e Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374493 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:10:20 +00:00
Gilles Sadowski 8abe21fe47 Code cleanup: Moved all computations to the constructor, allowing the class
to be immutable.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374492 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:09:25 +00:00
Sebastien Brisard fea45dcee8 Checkstyle: missing license.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374396 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 18:54:06 +00:00
Sebastien Brisard 67dcc70533 MATH-843: integrated changes suggested by Dominik Gruntz.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374395 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 18:45:49 +00:00
Gilles Sadowski 43c489d7cb Code cleanup: moved all computations to the constructor, allowing to make
the class immutable.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374308 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 15:09:59 +00:00
Gilles Sadowski bd59fee7a6 Code comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374187 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 09:50:54 +00:00