Commit Graph

4526 Commits

Author SHA1 Message Date
Gilles Sadowski 2ce650bf54 MATH-887
Made "GaussNewtonOptimizer" use the new methods in base class
"AbstractLeastSquaresOptimizer" instead of modifying the (now
deprecated) protected fields.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407034 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 12:48:54 +00:00
Gilles Sadowski 54cfc6ce0a MATH-887
Deprecated "protected" fields.
Created new methods (that take arguments and return a value) to
replace those that operate on protected fields.
Removed call to deprecated methods in unit tests.
Added public method "setCost" to replace the direct assignment to
a protected field.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407010 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 10:50:34 +00:00
Gilles Sadowski b65cad05b9 MATH-887
First steps to enhance encapsulation (goal is to remove the "protected"
fields): used new API (MATH-874).
Replaced explicit loops with matrix operations.
Disabled a unit test that does not pass anymore.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1406010 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 23:41:05 +00:00
Gilles Sadowski 568404b6eb Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1406008 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 23:32:15 +00:00
Luc Maisonobe c61b08e546 Fixed naming inconsistencies between Interval and IntervalsSet classes.
JIRA: MATH-890

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405711 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:43:38 +00:00
Luc Maisonobe 2a41e40c15 Added a method to check points in the Interval class.
JIRA: MATH-889

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405706 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:00:19 +00:00
Phil Steitz 387e7f9fa9 Reverting changes inadvertently committed in r1405634.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405635 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:56:37 +00:00
Phil Steitz 6e40b488fd Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405634 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:51:21 +00:00
Phil Steitz 0987ae5a20 Added G-test statistics. JIRA: MATH-878. Thanks to Radoslav Tsvetkov and Ted Dunning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405620 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 19:32:35 +00:00
Phil Steitz 1cfa9491a2 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405409 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 19:46:41 +00:00
Gilles Sadowski 18360735db Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1404085 13f79535-47bb-0310-9956-ffa450edef68
2012-10-31 10:45:09 +00:00
Luc Maisonobe d4b31ce8ff streamlined deserialization of DerivativeStructure
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403648 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 09:52:09 +00:00
Gilles Sadowski ea8e5c488d Use the "isSymmetric" utility method from "MatrixUtils" (copied from
"EigenDecomposition" in MATH-884).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403591 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:38:44 +00:00
Gilles Sadowski 06c63da6c7 MATH-883
Added "getSquareRoot()" method. Implementation only supports symmetric,
diagonalizable matrices.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403590 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:29:06 +00:00
Gilles Sadowski 4d12f0ca68 MATH-884
Added methods "isSymmetric" and "checkSymmetric".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403587 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:21:20 +00:00
Phil Steitz e0f7ce9c7c Moved array argument validation methods from ChiSquareTest to MathArrays. JIRA: MATH-885.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403169 13f79535-47bb-0310-9956-ffa450edef68
2012-10-29 04:06:14 +00:00
Thomas Neidhart 6f50c9e55d Completed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402800 13f79535-47bb-0310-9956-ffa450edef68
2012-10-27 14:31:26 +00:00
Gilles Sadowski 41aa1c40fd Removed quasi-duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402716 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 23:37:32 +00:00
Gilles Sadowski 4fe86d82eb MATH-874
I forgot to "svn add" classes (in revision 1402607).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402611 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 18:27:34 +00:00
Gilles Sadowski d0d4760c97 MATH-874
First steps to upgrade the API of the classes in "o.a.c.m.optimization.general".
Please note the introduction of a "Weight" matrix (whereas the current code
assumes that the weights are given as an array).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1402607 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 18:19:40 +00:00
Gilles Sadowski 2796e77e2e MATH-874
Reduced number of overridden public "optimize" methods (replaced by protected
"optimizeInternal"): whenever the code is ready for 4.0, only the base class's
"optimize" method should define the public API (subclass specifics are handled
in overridden "optimizeInternal" which must call the base class's version to
handle the common setup).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401928 13f79535-47bb-0310-9956-ffa450edef68
2012-10-25 00:20:24 +00:00
Gilles Sadowski 8964c7aa09 Updated "changes" file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401906 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 22:38:25 +00:00
Gilles Sadowski e0426dfbfb MATH-816
Using different seeds for the component distributions to avoid getting
the same sequence of random numbers for all of them. Update to the
"testSampling" unit test contributed by Jared Becksfort.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401894 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 21:27:44 +00:00
Luc Maisonobe f5765cf99d Use the new differentation API for all optimizers.
The older API is still supported as of version 3.1, but is implemented
by wrapping the user function into the new API and then calling the new
code.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401838 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 19:40:08 +00:00
Luc Maisonobe 7b5a64c0bb Added converters for multivariate functions.
The converters allow to convert back and forth between the older
and the newer differentiation API. They are considered temporary methods
for version 3.1 and will be removed in 4.0 as only the new API will
remain.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 19:39:45 +00:00
Thomas Neidhart 3bae991455 Added missing closing action tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401451 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 20:35:04 +00:00
Thomas Neidhart 477104bd09 Fix spelling.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401416 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 19:30:09 +00:00
Sebastien Brisard db51254b40 Reverted changes inadvertently commited in r1401171.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401172 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 06:08:32 +00:00
Sebastien Brisard 9dffcfd3be Maxima scripts to generate reference values for the gamma and logGamma
functions.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401171 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 06:04:09 +00:00
Luc Maisonobe 6d5763c539 Removed unused exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401034 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 19:32:03 +00:00
Luc Maisonobe 2a9cbbab46 Finalized fix for MATH-880.
This version should be much more robust on polygons computation than the
earlier ones. Note that the hyperplaneThickness parameter is a key
tuning parameter in difficult cases like the one involved in the issue.
As shown in the corresponding unit test, the value had to be raised to
1.0e-8 in order for the test to pass correctly.

JIRA: MATH-880

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401022 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 19:21:36 +00:00
Thomas Neidhart c2e855d6a0 [MATH-759] add resolution to changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401000 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 18:47:33 +00:00
Gilles Sadowski 3b6bbf6d2c Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400881 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 13:57:26 +00:00
Gilles Sadowski 7096dabffa MATH-854
Fill "throw" clauses.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400850 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 11:57:17 +00:00
Luc Maisonobe b25f448d2f Improved polygons creation with a numerically more robust constructor.
This is only a partial fix for issue 880 because there are still some
glitches in the first polygon involved in the issue.

JIRA: MATH-880

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400717 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 20:08:32 +00:00
Thomas Neidhart c323480cf6 Added Dan Checkoway as contributor due to his patch for MATH-474.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400687 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:44:53 +00:00
Thomas Neidhart 231b9a8905 Fix special characters in changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400685 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:43:08 +00:00
Thomas Neidhart 1d02ff125d [MATH-474] Added Frequency#merge method, thanks to patch from Dan Checkoway.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400683 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:33:37 +00:00
Thomas Neidhart ec6f1c8270 Small fixes of javadoc @throws tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400676 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:41:38 +00:00
Thomas Neidhart 8bada78845 Removed unneeded import in package-info.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400675 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:34:40 +00:00
Thomas Neidhart bea6d09158 Fix checkstyle warnings, added missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400673 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:32:30 +00:00
Thomas Neidhart 5b9302d5be [MATH-778] Allow unlimited input values for Dfp#multiply.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400671 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:22:50 +00:00
Gilles Sadowski 0912bac520 MATH-868
MATH-879
"lambda" and "inputSigma" should be passed to "optimize" as arguments of
type "OptimizationData". Deprecated constructors. Updated unit tests.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400108 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 14:20:16 +00:00
Gilles Sadowski ea138c2da2 MATH-816
Mixture model distribution.  Original code contributed by Jared Becksfort,
committed with changes as discussed on the JIRA page.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400040 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 11:00:53 +00:00
Gilles Sadowski bdd5b45cf7 MATH-815
Added method that was missing in the original commit: "getDimensions()",
renamed to "getDimension()".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400017 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 09:55:01 +00:00
Gilles Sadowski a355d8c20a MATH-881
Removed useless method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400010 13f79535-47bb-0310-9956-ffa450edef68
2012-10-19 09:30:44 +00:00
Gilles Sadowski 4a3a3eba60 MATH-881
Removed meaningless properties for multivariate distributions.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1399864 13f79535-47bb-0310-9956-ffa450edef68
2012-10-18 21:26:13 +00:00
Gilles Sadowski 41f74ba651 Inner class should have been "static".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1399433 13f79535-47bb-0310-9956-ffa450edef68
2012-10-17 21:09:27 +00:00
Gilles Sadowski 3a874d8f01 Formatting.
"final" keyword.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398547 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 22:30:30 +00:00
Gilles Sadowski ecc9690e26 Formatting.
Removed unnecessary decimal point on constants, and added explicit cast where
necessary.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398297 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 14:09:32 +00:00