Commit Graph

2837 Commits

Author SHA1 Message Date
Gilles Sadowski e3fe16402e MATH-544
Matrix exception classes moved back to package "linear". Removed unnecessary
"import" statements, fixed Javadoc and unit tests and upgraded them to
JUnit 4 (MATH-423).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079350 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 13:42:16 +00:00
Gilles Sadowski dd39f901b2 MATH-542
Class is not used anymore.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078746 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 11:29:18 +00:00
Gilles Sadowski da462abca0 MATH-542
"MathRuntimeException" provides two ways for enhancing the information content:
one for localized messages and one for storing "context" objects.
The additional methods have been added to "MathThrowable". Consequently, dummy
implementations were needed in the old "MathRuntimeException" and
"MathException".
Some parts of the tests for old exceptions were removed as they used methods
that were deleted. A call to "MathUserException" in "AbstractContinuousDistribution"
was simplified for the same reason.
"MathUtils" still contained "String" (instead of "Localizable") as argument to
the constructor of a "MathArithmeticException".
I don't know why a test in "DummyStepInterpolatorTest" stopped working. It is now
commented out; please have a look.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078734 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 10:37:52 +00:00
Sebastian Bazley 47d9a5d240 Alternate solution: remove shadowing by removing copies (since class is not static)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078466 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 13:24:43 +00:00
Sebastian Bazley 1f3c6973e3 Rename private variables to avoid name shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078445 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 10:58:23 +00:00
Sebastian Bazley b20cc34b67 Make write-once private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078444 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 10:57:11 +00:00
Sebastian Bazley 3782364dc7 Javadoc @see cannot have trailing text after </a>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078443 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 10:48:33 +00:00
Sebastian Bazley cb3fc36801 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078397 13f79535-47bb-0310-9956-ffa450edef68
2011-03-06 01:47:52 +00:00
Sebastian Bazley b9043d296b Oops - wrong issue terminator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1076666 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 16:24:15 +00:00
Gilles Sadowski bc04240567 Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075803 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 13:02:12 +00:00
Gilles Sadowski 84da32cb34 Updated "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075552 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:42:50 +00:00
Gilles Sadowski 79b47351b5 MATH-503
Added derivative function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075544 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:32:33 +00:00
Gilles Sadowski 55a1b8090a MATH-534
Refactored "PolynomialFitter". Moved parametric function inner class to
"PolynomialFunction".
Adapted affected classes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075054 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 13:31:47 +00:00
Gilles Sadowski 4117b2a53a MATH-536
Simplified string representation (when a coefficient is an integer number).
Upgraded unit tests to JUnit 4.
Code and Javadoc formatting clean-up.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075048 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 12:58:10 +00:00
Gilles Sadowski 3402d1c3c9 Minor change in tolerance setting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1075040 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 12:41:48 +00:00
Sebastian Bazley 3a6fd36acb It's somewhat easier to read PDF rather than PostScript (even for mathematicians)...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074959 13f79535-47bb-0310-9956-ffa450edef68
2011-02-26 23:28:44 +00:00
Gilles Sadowski 2e63eeea11 MATH-503
"Logit" function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074954 13f79535-47bb-0310-9956-ffa450edef68
2011-02-26 23:07:49 +00:00
Gilles Sadowski 96ed605cce Eliminated "Findbugs" warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074951 13f79535-47bb-0310-9956-ffa450edef68
2011-02-26 23:05:07 +00:00
Gilles Sadowski 9aa053e6b8 MATH-503
Added derivative and parametric version of the function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074950 13f79535-47bb-0310-9956-ffa450edef68
2011-02-26 22:58:59 +00:00
Sebastian Bazley 1c1a4506f0 Simplify release notes generation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074503 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 12:43:28 +00:00
Sebastian Bazley e7fe05752f Eol-style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074388 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 02:54:08 +00:00
Luc Maisonobe ed5f01cf8a fixed version property for Nexus
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074296 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 21:20:59 +00:00
Luc Maisonobe 745bc49daf fixed a nasty bug with atan2 that occurred only with some Java 1.5 virtual machines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074295 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 21:19:33 +00:00
Gilles Sadowski ae6762b2a7 Wrong function.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074202 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 16:35:36 +00:00
Sebastian Bazley 5e2e43652f Give the changes output file the correct name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1074124 13f79535-47bb-0310-9956-ffa450edef68
2011-02-24 12:28:41 +00:00
Gilles Sadowski 1f11030cab MATH-521
Changed initial guess default values.
Added test.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073796 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 15:52:38 +00:00
Gilles Sadowski a44563d202 Wrong call.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073772 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 15:15:19 +00:00
Gilles Sadowski 26a610776c MATH-519
Workaround exception generated when the optimizer tries invalid values for
the "sigma" parameter.
Added a method to allow the user to pass his own initial guess.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073554 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 23:50:46 +00:00
Gilles Sadowski 73a227619d MATH-518
Superseded by "HarmonicOscillator" in package "analysis.function".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073540 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 23:08:00 +00:00
Luc Maisonobe 5f705bb1b0 added missing @since tags
JIRA: MATH-533

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073475 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 19:52:48 +00:00
Luc Maisonobe 11fd051ad8 added missing @since tags
JIRA: MATH-532

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073473 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 19:49:38 +00:00
Luc Maisonobe 311229c30c added missing @since tags
JIRA: MATH-531

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073466 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 19:35:32 +00:00
Luc Maisonobe 91e5a8b7ce added missing @since tag
JIRA: MATH-530

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073463 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 19:30:36 +00:00
Luc Maisonobe 183252a6f0 added missing @since tags
JIRA: MATH-529

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073458 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 19:17:51 +00:00
Gilles Sadowski 4f1dba40f5 MATH-517
"HarmonicFitter" refactored to include the functionality of
"HarmonicCoefficientsGuesser" as an inner class, and now using
"HarmonicOscillator" (from package "analysis.function") instead of
"HarmonicFunction" (from package "optimization.fitting").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073378 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 16:13:56 +00:00
Gilles Sadowski b1dcd6b612 MATH-518
Created new function object to replace "HarmonicFunction" (in package
"optimization.fitting").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073363 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 15:34:20 +00:00
Sebastian Bazley 6c1c1143ad Fail on error, rather than printing to stdout
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073297 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 11:08:53 +00:00
Luc Maisonobe 8a284972f3 added missing @since
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073277 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 09:35:34 +00:00
Luc Maisonobe a1d09afe02 added missing @since
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073273 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 09:23:43 +00:00
Luc Maisonobe a03e53aad7 added missing @since
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073266 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 09:05:47 +00:00
Luc Maisonobe a197358647 fixed the since message to show the getSparsity has been introduced in 2.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073263 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 09:03:12 +00:00
Luc Maisonobe 31ca64cfa8 fixed @since comment, the class was added in 2.2 not in 2.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1073167 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 22:07:51 +00:00
Sebastian Bazley 1cc75e8fa5 Update to JUnit 4.8.2
Avoid warnings about includeAntRuntime
Generate text output for unit tests

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072980 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 14:26:08 +00:00
Gilles Sadowski a3d300bb55 MATH-516
Removed "GaussianFunction" and "GaussianDerivativeFunction" (superseded by
class "Gaussian (in package "analysis.function").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072209 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 00:19:32 +00:00
Gilles Sadowski f2e551b8de MATH-514
Removed "ParametricGaussianFunction" (superseded by "Gaussian.Parametric"
in package "analysis.function").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072207 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 00:03:46 +00:00
Gilles Sadowski 04bbc3fccf MATH-512
Functionality moved to "GaussianFitter.ParameterGuesser" inner class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072199 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 23:43:01 +00:00
Gilles Sadowski 44adfaeb94 MATH-512
Refactoring of the "GaussianFitter" class by Ole Ersoy.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072056 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 16:45:57 +00:00
Gilles Sadowski c9d9bdcdbf MATH-442
Implementation of the CMA-ES optimization algorithm provided by Dietmar Wolz
and Nikolaus Hansen.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1071600 13f79535-47bb-0310-9956-ffa450edef68
2011-02-17 13:10:00 +00:00
Gilles Sadowski dee0874ae8 MATH-515
"copyOf" methods (for "int" and "double" arrays).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1071596 13f79535-47bb-0310-9956-ffa450edef68
2011-02-17 12:43:53 +00:00
Gilles Sadowski 08ee0d963c MATH-514
Added a "Parametric" inner class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1071430 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 22:48:43 +00:00