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
Luc Maisonobe
64a7948cee
Added log10 to DerivativeStructure and DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:28 +00:00
Luc Maisonobe
d48f623281
Changed parameters name for consistency with getters and DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374161 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:05 +00:00
Gilles Sadowski
acaf4d9caa
Change suggested by "FindBugs".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374071 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:35:14 +00:00
Gilles Sadowski
02123844e8
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374065 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:22:09 +00:00
Gilles Sadowski
b1741d1b46
Precondition check.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374054 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:00:39 +00:00
Gilles Sadowski
7994d3ee9d
MATH-844
...
Generate an exception when the parameter guessing procedure cannot perform
correctly (in rare ill-conditioned cases).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374046 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:43:59 +00:00
Thomas Neidhart
91d24dcb6f
Disabled random data tests for eigen decomposition, improved checkUnsymmetricMatrix helper.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374031 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:14:15 +00:00
Luc Maisonobe
f06fe1c098
Added toDegrees and toRadians to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:08:17 +00:00
Luc Maisonobe
d26fd0236a
Added signum to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373781 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:59 +00:00
Luc Maisonobe
7b090c5eec
Added rint and round to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373780 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:42 +00:00
Luc Maisonobe
486224fd36
Added getExponent, scalb and hypot to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373779 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:26 +00:00
Luc Maisonobe
4c56e61497
Added expm1 and log1p to DSCompiler and DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373778 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:08 +00:00
Luc Maisonobe
68c813c945
Added copySign to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373777 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:50 +00:00
Luc Maisonobe
70ea046932
Added ceil and floor to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373776 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:33 +00:00
Luc Maisonobe
09b90da825
Added abs to DerivativeStructure.
...
We handle +0.0/-0.0 correctly, i.e. we flip derivatives sign when value
is negative zero.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373775 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:16 +00:00
Thomas Neidhart
4e72620a37
Fix RealMatrixFormatTests to always use a fixed locale instead of the default one.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373554 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:30:18 +00:00
Thomas Neidhart
c90de5a469
Use fixed locale for matrix formatter to prevent decimal point problems.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373551 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:24:25 +00:00
Gilles Sadowski
9b5b8d7d45
Fixed FindBugs warning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373134 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 22:02:06 +00:00
Thomas Neidhart
16a5a02a84
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373026 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 18:50:53 +00:00
Luc Maisonobe
ff43dac3d2
Added hyperbolic trigonometric functions and inverses to DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372902 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 14:25:50 +00:00