Commit Graph

4396 Commits

Author SHA1 Message Date
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
Gilles Sadowski ac094067cf MATH-873
Removed usage of "maximum number of evaluations" in a place where it altered
the algorithm's core behaviour (whereas it should only serve as a processing
time limit).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398284 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 13:33:43 +00:00
Gilles Sadowski 91011db79d MATH-872
Sigma values expressed as a kind of "OptimizationData". Deprecated
constructors that were passed an "inputSigma" argument.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398275 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 13:12:15 +00:00
Gilles Sadowski 652c6220cb MATH-874
Simple bounds expressed as a kind of "0ptimizationData".
The specification of simple bounds is handled in "BaseAbstractMultivariateOptimizer";
hence "BaseAbstractMultivariateSimpleBoundsOptimizer" is deprecated.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1398263 13f79535-47bb-0310-9956-ffa450edef68
2012-10-15 12:16:53 +00:00
Gilles Sadowski 2b40d7c36b MATH-874
New API allows to pass the simplex as an argument to "optimize".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397759 13f79535-47bb-0310-9956-ffa450edef68
2012-10-13 01:12:58 +00:00
Gilles Sadowski 8bc689a30c MATH-874
New "optimize" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397758 13f79535-47bb-0310-9956-ffa450edef68
2012-10-13 01:09:02 +00:00
Gilles Sadowski 91be760415 Replaced bit operator with logical operator.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1397106 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 15:18:07 +00:00
Gilles Sadowski d1ea9a6fb7 Javadoc. [After the MATH-867 fix, this warning is obsolete.]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395949 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:45:16 +00:00
Luc Maisonobe 4b7c9c9408 Fixed javadoc warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395937 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:04:36 +00:00
Gilles Sadowski 4907b06568 MATH-876
Changed "<commons.componentid>" property (used in "commons-parent" to create
the "Bundle-SymbolicName" entry in "MANIFEST.MF").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395545 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 13:14:50 +00:00
Sebastien Brisard 37f8de9542 MATH-875: deprecated sparseIterator() in the RealVector hierarchy, and replaced its use with iterator().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395455 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:54:21 +00:00
Sebastien Brisard d0e8a3587a MATH-854: FieldMatrix.setSubMatrix does *not* throw NumberIsTooSmallException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395453 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:19:50 +00:00
Sebastien Brisard 7cac883ba0 MATH-854: populated throws clause of BlockFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395452 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 05:16:27 +00:00
Gilles Sadowski 3e10f8d478 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395181 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 22:17:12 +00:00
Phil Steitz 3084dd1e4a Made file character set explicit and added file loading tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394882 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 01:05:06 +00:00
Phil Steitz 288558e48e Removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394763 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:54:00 +00:00
Phil Steitz 955dda0258 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1394761 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 19:52:15 +00:00
Gilles Sadowski 52990bc644 Read bound values from base class instead of duplicating the data.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393978 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 10:25:42 +00:00
Gilles Sadowski e41cea1e33 Improved Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393641 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 18:06:33 +00:00
Thomas Neidhart 8eb3bbaca4 Remove trailing spaces, added missing javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1393153 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 20:15:00 +00:00
Sebastien Brisard 3b5d0dd52c User's guide for special functions now reports accuracy of
Gamma.gamma(double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392751 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 06:09:03 +00:00
Sebastien Brisard bb0827cc81 MATH-854: populated throws clause of Array2DRowFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392748 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:35:59 +00:00
Sebastien Brisard 72051d7f6d MATH-854: populated throws clause of AbstractFieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392743 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:21:51 +00:00
Sebastien Brisard 9f663a15e6 MATH-854: populated throws clause of FieldMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392742 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:14:38 +00:00
Sebastien Brisard d685138370 User's guide for special functions now reports accuracy of
Gamma.logGamma(double).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392739 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 05:00:41 +00:00
Phil Steitz 57b0a07b9f Final keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392358 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:41:55 +00:00
Phil Steitz e055dcd21a Added missing throws declarations. JIRA: MATH-854.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392342 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 14:08:52 +00:00
Gilles Sadowski bb60e51654 Indentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392028 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 14:17:12 +00:00
Luc Maisonobe df92c3b6f1 Added distance to point to 2D Line and Segment.
Patch provided by Curtis Jensen applied with minor modifications.

JIRA: MATH-641

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392022 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 13:22:28 +00:00
Gilles Sadowski 3246e42006 Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391928 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:14:32 +00:00
Gilles Sadowski 1ac0c79080 CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391927 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:03:30 +00:00