Commit Graph

5068 Commits

Author SHA1 Message Date
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
Gilles Sadowski 52e4f99b32 MATH-1011
Delegate method "nextInt" in "RandomDataGenerator" to method "sample" in
"UniformIntegerDistribution".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508860 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 14:00:50 +00:00
Gilles Sadowski 0c2f30f9f2 MATH-1011
Replaced implementation (with a more robust one, copied from
"o.a.c.m.random.RandomDataGenerator").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508829 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 12:17:20 +00:00
Gilles Sadowski acd569595e MATH-1008
Created package "o.a.c.m.fitting.leastsquares" to contain a modified version
of the contents of (to-be-deprecated) "o.a.c.m.optim.nonlinear.vector", the
main purpose being to provide a new "fluent" API (cf. "withXxx" methods).  
Along the way, class "LevenbergMarquardtOptimizer" has been further cleaned    
up (e.g. removing protected fields and deprecated methods and using local
variables instead of instance fields).
An additional constructor was necessary in "BaseOptimizer".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508481 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 15:04:22 +00:00
Luc Maisonobe 0215c2c5f5 Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505938 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:50:10 +00:00
Luc Maisonobe e79f61951b Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505934 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:38:03 +00:00
Luc Maisonobe 24f20dc6e3 Fixed checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505931 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:37:39 +00:00
Phil Steitz a626e4ce7e Enabled MathJax in site docs. JIRA: MATH-1006.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504975 13f79535-47bb-0310-9956-ffa450edef68
2013-07-19 19:36:30 +00:00
Sebastian Bazley aa9293caed Explicit boxing and unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504729 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:54:52 +00:00
Sebastian Bazley dafa441cca Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504726 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:44:13 +00:00
Sebastian Bazley 5e7b146f9e Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504724 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:41:20 +00:00