4114 Commits

Author SHA1 Message Date
Luc Maisonobe
d05fac054e Completed support fo asin, acos and atan in DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371805 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 18:33:06 +00:00
Luc Maisonobe
b46cdf1bd6 Added forgotten notification of recent changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371683 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:19:48 +00:00
Luc Maisonobe
be1632f3e3 New test for sin and cos derivatives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371681 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:18:12 +00:00
Luc Maisonobe
add45005fc Added Stirling numbers of the second kind in ArithmeticUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371680 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:15:23 +00:00
Luc Maisonobe
f2fe724505 Forward the underlying error message when an exception is triggered.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371671 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:59:20 +00:00
Luc Maisonobe
746c998e1a Fixed accuracy issues in FastMath.pow(double, int).
The fixed version is slightly slower, but still much faster than
FastMath.pow(double, double). Some random testing showed that the
accuracy is now always better than 0.5ulp, even for large exponent.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371670 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:54:46 +00:00
Gilles Sadowski
f465d0aa69 Code and javadoc cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371264 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 15:55:18 +00:00
Gilles Sadowski
dbe216ce60 Unit test for "FastMath.pow(double,int)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371170 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:40:01 +00:00
Luc Maisonobe
0ee65b7169 added a function to raise a double to an int power
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371082 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 08:07:25 +00:00
Luc Maisonobe
6e85e1c837 partially reverted commit 1370951 as it trashed earlier correction in FastMath
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371073 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 07:54:06 +00:00
Gilles Sadowski
f040e261bf MATH-815
Code update. Unit test.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370984 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 21:52:22 +00:00
Luc Maisonobe
87b597c622 Added a new package dealing with differentials.
The package is intended to deals with one or more free parameters and
derivation order 1 or higher.

The core elements are based on Dan Kalman paper "Recursive Multivariate
Automatic Differentiation", Mathematics Magazine, vol. 75, no. 3, June
2002. For efficiency, the recursive structure is compiled as simple
loops once for each pair (number of free parameters, derivation order).

This is work in progress, there are still some features missing even in
the most basic blocks (typically the asin, acos, atan, atant2 and taylor
methods in DSCompiler). There are also still no high level
differentiator implementation.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370951 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 20:33:43 +00:00
Gilles Sadowski
13f4032d6c MATH-815
Initial commit. Units test are yet to be added. This version also
contains a bug. Code contributed by Jared Becksfort, included with
modifications. [Cf. comments on JIRA.]


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 14:18:16 +00:00
Gilles Sadowski
5827a6faad MATH-843
Corrected documentation for "Precision.EPSILON".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370547 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 21:38:58 +00:00
Sebastian Bazley
5add6876dc MIssing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370228 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:49:31 +00:00
Sebastian Bazley
12983d5e04 MIssing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370227 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:48:25 +00:00
Sebastian Bazley
404b6196a5 Javadoc fixes (not thrown)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370224 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:43:41 +00:00
Sebastian Bazley
8d97496f8d Raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370220 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:42:33 +00:00
Sebastian Bazley
2e16492cbf Missing @Deprecated
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370219 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:40:56 +00:00
Sebastian Bazley
88c71ec9d7 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370217 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:39:29 +00:00
Sebastian Bazley
8fd9c6eee0 Missing @Deprecated
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370215 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:59 +00:00
Sebastian Bazley
e3ec8ebcf0 Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370214 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:39 +00:00
Sebastian Bazley
aef4dd02f9 Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370211 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:06 +00:00
Sebastian Bazley
1b434bcd8e Add comment as to why equals() and hashCode() are not implemented
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370149 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 08:58:37 +00:00
Gilles Sadowski
6c8f74edd8 Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369795 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 12:00:27 +00:00
Thomas Neidhart
68486630e0 Added MATH-777 to changes.xml, thanks to Reid Hochstedler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369663 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:20:43 +00:00
Thomas Neidhart
def7c9911a [MATH-777] Added OrderedCrossover policy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369658 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:03:28 +00:00
Phil Steitz
1a44ba4b61 Fixed failing test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369654 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 19:48:31 +00:00
Thomas Neidhart
bd0008e809 [MATH-777] Added CycleCrossover policy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369637 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 18:46:54 +00:00
Thomas Neidhart
0b1a5c1415 Added MATH-828 to changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369616 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 16:32:52 +00:00
Thomas Neidhart
c2811e767d Fix findbugs warning, use strict comparison for negative values.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369597 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 14:11:27 +00:00
Thomas Neidhart
efb3e07afe Fixed warnings spotted by checkgilles.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369591 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 14:00:33 +00:00
Thomas Neidhart
d880dddc55 Fixed findbugs finding when comparing Integer references.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369540 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 09:32:46 +00:00
Gilles Sadowski
4104b21368 MATH-840
Fixed invalid argument to "asin" and "acos".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369514 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 02:37:15 +00:00
Gilles Sadowski
b6e62ab83a MATH-740
Grabbing a few percents performance for "log".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369506 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 23:11:45 +00:00
Gilles Sadowski
bfdf1c44af MATH-839
Indicating changes that cannot be performed before 4.0 (new method
"probability(double,double)" can be only added to the interface in
a major release).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369420 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 19:40:03 +00:00
Gilles Sadowski
ef205a5d1a MATH-839
Created new method "probability(double,double)" in implementations were
it it overridden, and deprecated "cumulativeProbability(double,double)".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369415 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 19:24:56 +00:00
Gilles Sadowski
5396f1e119 MATH-839
Added new method "probability(double, double)" to "AbstractRealDistribution".
Deprecated "cumulativeProbability(double, double)".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369381 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:06:59 +00:00
Thomas Neidhart
b68fc58a61 Added MATH-836 to changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369359 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:22:52 +00:00
Gilles Sadowski
6ec0872f28 MATH-838
Moved the "probability(double)" method to the parent class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369202 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 20:50:33 +00:00
Gilles Sadowski
44b2830b88 Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369188 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 19:59:36 +00:00
Gilles Sadowski
db540a6b91 Javadoc, formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369101 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 17:15:38 +00:00
Gilles Sadowski
c25dbeec0f MATH-834
Replaced calls to the various sampling methods in "RandomDataImpl" by their
equivalent "sample" method in the distribution classes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1368738 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 22:18:08 +00:00
Thomas Neidhart
d7c0f27e9f [MATH-836] Improve overflow check for negative values in Fraction constructor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1368253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-01 21:24:27 +00:00
Gilles Sadowski
63a48705a4 MATH-835
Avoid overflow.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367593 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 14:58:01 +00:00
Thomas Neidhart
a49e443c44 [MATH-828] Add additional heuristic for rare cases in pivotRow selection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367242 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:37:48 +00:00
Thomas Neidhart
107d7f3ea8 Use a TreeSet instead of an ArrayList when dropping columns after phase 1 of the simplex solver to improve performance.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367227 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:07:05 +00:00
Gilles Sadowski
ebc0d3d309 Reverting changes inadvertently committed in revision 1366821.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366826 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 12:12:11 +00:00
Gilles Sadowski
72779b2300 MATH-622
Default is now to print 10 fractional digits.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366821 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 12:05:48 +00:00
Thomas Neidhart
0ed64edde5 Fixed wrong import for FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366717 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 17:44:32 +00:00