Commit Graph

5078 Commits

Author SHA1 Message Date
Thomas Neidhart 86545dab3e [MATH-996] Fix creation of Fraction/BigFraction objects in maxDenominator mode when the value is close to an actual fraction.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519204 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 19:43:02 +00:00
Phil Steitz d7fd760eb8 Added Thorsten Schaefer to contributors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519187 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:58:36 +00:00
Thomas Neidhart 8ffd2e9e46 Fix change message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519186 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:41:43 +00:00
Thomas Neidhart 46c14e7411 [MATH-1028] Added new distance metric EarthMoversDistance, thanks to Thorsten Schaefer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519185 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:32:49 +00:00
Thomas Neidhart e7211873ee Fix Id tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519184 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:22:59 +00:00
Gilles Sadowski 8d57e61426 "final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1518829 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 21:22:59 +00:00
Thomas Neidhart 629663a08f [MATH-999] Improve performance of DiagonalMatrix.preMultiple(RealVector), thanks to Ajo Fod.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1518820 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 20:57:09 +00:00
Luc Maisonobe db0ad53076 Added a convenience createConstant method for DerivativeStructure.
Thanks to Ajo Fod.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517789 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 11:15:50 +00:00
Luc Maisonobe ee9383b770 Improved handling of negative arguments for power function.
Thanks to Ajo Fod.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517788 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 11:15:18 +00:00
Gilles Sadowski 5b60da6526 Increase code locality.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517542 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 14:24:18 +00:00
David Brosius 9c82c679f8 presize collections
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517418 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 03:18:55 +00:00
David Brosius 40ef9f876c simplify string to primitive conversion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517416 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 03:04:38 +00:00
David Brosius 15d9a40e8e remove dead store to 'resultb'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517404 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 01:05:11 +00:00
Luc Maisonobe 8d609db47f Added method to compute a^x for double a and DerivativeStructure x.
This takes care of special cases like a=0, but encounters the same
limitation as rootN near the singularity 0^0. Combined derivatives like
order 2 or higher with respect to canonical variables give NaN and not
+/-infinity. First derivative with respect to a single variable works
well and provided the correct infinity.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517379 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 20:15:29 +00:00
Luc Maisonobe cf4805081b Fixed checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517359 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 18:19:06 +00:00
Gilles Sadowski 5151780b34 Extending the validity range of the check.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517338 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 17:06:55 +00:00
Phil Steitz ad35857d0f Added CombinatoricsUtils to the util package, moving binomial
coefficients, factorials and Stirling numbers there and adding
a combinations iterator.
JIRA: MATH-1025

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517203 13f79535-47bb-0310-9956-ffa450edef68
2013-08-24 21:55:35 +00:00
Gilles Sadowski b06d9bcfa1 MATH-1014
Deprecation markers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516923 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 16:16:00 +00:00
Gilles Sadowski 354d5520c9 MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516902 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:45:49 +00:00
Gilles Sadowski eb1a3f00a2 MATH-1014
"GaussianCurveFitter" as replacement of "GaussianCurveFitter".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516896 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:39:55 +00:00
Gilles Sadowski 95ce549b40 MATH-1014
Deprecation markers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516895 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:37:29 +00:00
Gilles Sadowski 053b8dda2d MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516875 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:01:33 +00:00
Gilles Sadowski 39479c8a77 MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516865 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:37:41 +00:00
Gilles Sadowski 667feb7b73 MATH-1014
New class "AbstractCurveFitter" as replacement for "CurveFitter".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516854 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:12:06 +00:00
Gilles Sadowski 0155238a3c MATH-1014
Container for storing observations, to allow separating the curve fitting
algorithms from the data to be fitted.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516059 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 02:03:30 +00:00
Sebastian Bazley 897f5e29b9 Suppress long tar file name warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515675 13f79535-47bb-0310-9956-ffa450edef68
2013-08-19 23:51:59 +00:00
Sebastian Bazley 80bcf448a2 Temp hack to fix CP32 jacoco bug
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515654 13f79535-47bb-0310-9956-ffa450edef68
2013-08-19 22:57:26 +00:00
Sebastian Bazley 5fe98f86f4 Latest JUnit version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515651 13f79535-47bb-0310-9956-ffa450edef68
2013-08-19 22:49:37 +00:00
Gilles Sadowski 529415fffe MATH-1008
Deprecated least-squares optimizers in package "o.a.c.m.optim.nonlinear.vector".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515242 13f79535-47bb-0310-9956-ffa450edef68
2013-08-18 23:27:29 +00:00
Gilles Sadowski 4f124df979 MATH-1008
Added "shallowCopy" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515238 13f79535-47bb-0310-9956-ffa450edef68
2013-08-18 22:55:31 +00:00
Gilles Sadowski b0a0c5bd6d Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513660 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 21:38:23 +00:00
Gilles Sadowski 0cc43e36b8 MATH-1019
Removed dead link in Javadoc; added entry to original reference
in "LICENCE" file.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513501 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 14:20:26 +00:00
Gilles Sadowski 40bde15b03 MATH-1022
Fixed Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513430 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 10:46:48 +00:00
Gilles Sadowski 4d5660ed47 MATH-991
Update "changes.xml".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512825 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 21:47:57 +00:00
Gilles Sadowski e175e32e8b MATH-1010
Deleted obsolete method (replaced by "MathArrays.shuffle").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512824 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 21:42:39 +00:00
Gilles Sadowski 11b1474cec MATH-989
Update "changes.xml".
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512547 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 01:13:38 +00:00
Gilles Sadowski f1467e45ab MATH-1021
Reordering can prevent some overflow occurrences (fix suggested by
Brian Bloniarz).
Added unit test.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512546 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 00:57:48 +00:00
Gilles Sadowski 6d66a863b5 Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512541 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 00:29:31 +00:00
Gilles Sadowski 21f882885b MATH-1010
Make use of the RNG supplied as argument.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512535 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 23:39:24 +00:00
Gilles Sadowski 63030b2b0a MATH-1008
Simplification of the code introduced in revision 1508481. The changes
only focus on the "fluent API" aspect (rather than also try to achieve
thread-safety through immutability).
Class "AbstractOptimizer" introduced to serve as the base class for all
optimizers (i.e. replace the current "BaseOptimizer").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512530 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 23:21:14 +00:00
Gilles Sadowski 6d0394d27d MATH-1020.
Fixed "nextPermutation" in "RandomDataGenerator". Bug showed up when using
a fixed version of "shuffle" (MATH-1019) added in "MathArrays" (MATH-1010).
Added overloaded "shuffle" method (used in the above fix).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512306 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 13:55:49 +00:00
Gilles Sadowski c8fc11146f MATH-1010
Added utility to shuffle an array (based on the method "shuffle" located
in "o.a.c.m.random.RandomDataGenerator"). See also MATH-1019.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512095 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 23:18:59 +00:00
Thomas Neidhart f18f6dd91b Update release version for new features.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512043 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 21:27:57 +00:00
Gilles Sadowski 80c884bb67 Unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1510924 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 12:22:47 +00:00
Gilles Sadowski fc1d4f9e91 MATH-1012
Removed duplicate code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509237 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:57:57 +00:00
Gilles Sadowski a846ced6e3 Removed duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509236 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:55:22 +00:00
Gilles Sadowski c97a18ad13 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509235 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:49:52 +00:00
Gilles Sadowski f228eb6233 Cleared "FindBugs" warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509234 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:48:57 +00:00
Gilles Sadowski 5eb18d2ef6 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509230 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:34:46 +00:00
Gilles Sadowski bafa4f8bf8 MATH-1012
Factory class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509222 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:12:06 +00:00