Commit Graph

2950 Commits

Author SHA1 Message Date
Gilles Sadowski 3c0afa529e New API (MATH-542).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083166 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 12:02:04 +00:00
Gilles Sadowski 566075ee5c MATH-545
Added "cosine" method in "RealVector" interface and default implementation
in "AbstractRealVector".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1082442 13f79535-47bb-0310-9956-ffa450edef68
2011-03-17 10:38:19 +00:00
Gilles Sadowski e41d0d67e3 MATH-542
Removed unnecessary method, as the case is taken care of with the other
"addMessage" method (with varargs).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1082124 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 11:07:05 +00:00
Gilles Sadowski b6bf8f418a MATH-546
Wrong  variable type ("int" instead of "double").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1081744 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 12:15:02 +00:00
Gilles Sadowski 35a0923edf MATH-542
Allow to "addMessage" without arguments (avoiding the need to explicitly
pass "null").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1081741 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 11:42:23 +00:00
Gilles Sadowski e8e3d821bb Removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080576 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 14:23:55 +00:00
Gilles Sadowski 1e2172b4d5 MATH-503
Added parametric version of the "Logistic" function.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080571 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 14:03:59 +00:00
Gilles Sadowski ef425179b5 MATH-542
Added custom "writeObject" and "readObject" so that serialization can
proceed even if non-"Serializable" objects are stored (in messages
arguments or context values).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1080231 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 14:05:32 +00:00
Gary D. Gregory b76de144c9 Ignore resources generated by Maven eclipse:eclipse
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079938 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 19:04:30 +00:00
Gary D. Gregory 8595215c98 Follow branding reqs from http://www.apache.org/foundation/marks/pmcs#graphics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079935 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 19:01:41 +00:00
Gilles Sadowski faed36db10 [Previous commit was a mistake.]
Created a "SerializablePair" for use in "MathRuntimeException".
Uncommented the test in "DummyStepInterpolatorTest".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079545 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 21:09:48 +00:00
Gilles Sadowski 4a01140363 Removed unused message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079528 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:42:14 +00:00
Gilles Sadowski 9e79920ec5 MATH-403
Added "CheckNotNull" methods.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1079519 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:32:40 +00:00
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