Gilles Sadowski
5118f5376d
MATH-900
...
License text moved to "LICENSE.txt".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410460 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 16:49:38 +00:00
Gilles Sadowski
23166ac9c1
MATH-900
...
License information moved to "LICENSE.txt".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410433 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 16:23:39 +00:00
Luc Maisonobe
d3811b134b
Replaced a character encoded in isolatin-1 in Javadoc.
...
As per current discussions on the dev list, we should go to UTF-8
entirely. For now, I have just used plain old html entities until we
make sure everything can be generated properly from UTF-8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410238 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 07:58:49 +00:00
Gilles Sadowski
166cfce47f
By having "UnivariateStatistic" extend the new "MathArrays.Function"
...
interface, subclassing "ResizableDoubleArray" is not necessary to achieve
the required functionality (see MATH-894).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410126 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:32:18 +00:00
Gilles Sadowski
b7555df622
MATH-894
...
Introducing new interface for operating on a "double[]" (added in
the "MathArrays" class). Using this interface, operations can be
performed on the internal array of a "ResizeableDoubleArray" through
a new "compute" method. Thanks to Phil Steitz.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410121 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:18:30 +00:00
Gilles Sadowski
4870a5d99d
MATH-894
...
Removed "initialCapacity" field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410109 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 23:35:56 +00:00
Gilles Sadowski
f2235a59a3
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409545 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 23:25:05 +00:00
Gilles Sadowski
b06f4a4ac6
Replaced calls to deprecated methods in "ResizeableDoubleArray" (see
...
MATH-894). Created subclass of "ResizeableDoubleArray" in order to
access to the object's internal array.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409509 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 22:55:07 +00:00
Gilles Sadowski
615661c90f
MATH-894
...
Added new "protected" (and not "synchronized") methods to allow access to
the internal array for subclasses only.
Javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409475 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 22:13:54 +00:00
Thomas Neidhart
586a9603ef
Reduce sleep time in unit test to prevent possible race condition.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409352 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 20:09:51 +00:00
Sebastien Brisard
245fbc7d13
New values of the accuracy of Beta.logBeta(double, double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409108 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 07:42:39 +00:00
Sebastien Brisard
3c8ba5e630
Further accuracy assessments of Beta.logBeta(double, double)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409107 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 07:41:29 +00:00
Sebastien Brisard
4cb2a39629
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1409091 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 06:18:40 +00:00
Gilles Sadowski
a7660837c3
MATH-894
...
Made the doc reflect the new behaviour of "clear()".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408833 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 17:03:47 +00:00
Gilles Sadowski
32d47dd087
Use constructor chaining (in place of duplicate code).
...
Fixed Javadoc typos (expansion factor and contraction criterion default
values).
Javadoc formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408830 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 16:53:13 +00:00
Gilles Sadowski
ac5efee04b
Avoid duplicate computation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408805 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 15:55:26 +00:00
Gilles Sadowski
4b60e4262d
MATH-894
...
Added new enum type to replace the integers used to represent the
expansion mode. Deprecated methods and contructor that use the old
representation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408797 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 15:50:24 +00:00
Gilles Sadowski
674f552985
MATH-894
...
Removed the reallocation in method "clear()".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408735 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 14:13:46 +00:00
Gilles Sadowski
593be67923
MATH-894
...
Deprecated methods that exposed internal state.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408723 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 13:55:45 +00:00
Gilles Sadowski
b324690406
Formatting, Javadoc, "final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408340 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 16:03:36 +00:00
Phil Steitz
16926f74f1
Consistently use G for G Test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408281 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:37:20 +00:00
Gilles Sadowski
de9e8b8c78
MATH-894
...
New method "getCapacity". Deprecated "getInternalLength".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408280 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:33:26 +00:00
Gilles Sadowski
6080bc88a8
MATH-887
...
Changed "computeWeightedJacobian" to return exactly that, instead of the
weighted Jacobian matrix multiplied by -1. Changed subclasses accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408250 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 11:36:40 +00:00
Gilles Sadowski
00d309c45d
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408246 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 11:27:31 +00:00
Phil Steitz
368050bbe6
Added G-test. JIRA: MATH-878.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408174 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:33:11 +00:00
Phil Steitz
c49c8c6667
Added G-test to TestUtils. JIRA: MATH-878
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408173 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:32:02 +00:00
Phil Steitz
f1dac3079a
Changed G-test method names to follow conventions in the inference package. JIRA: MATH-878.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1408172 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 04:29:46 +00:00
Thomas Neidhart
16acabd53f
[MATH-893] Add new NaNStrategy FAILED, thanks to Patrick Meyer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407852 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 17:14:51 +00:00
Thomas Neidhart
def7381851
Fix typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407848 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:58:59 +00:00
Thomas Neidhart
ff96ac9292
[MATH-892] Add new ctor to SpearmansCorrelation, reordering of ctors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407847 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:51:49 +00:00
Sebastien Brisard
a170601629
In the users guide for special functions
...
- accuracy of current implementation of Beta.logBeta
- standard deviation of error (in ulps) is now provided for all special
functions that have already been evaluated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407594 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 19:03:28 +00:00
Sebastien Brisard
6687706d44
Script files for the validation of beta.logBeta(double, double)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407592 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 18:59:21 +00:00
Gilles Sadowski
b76ce72cf0
MATH-887
...
Removed usage of "protected" fields "cols" and "rows".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407501 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 15:48:56 +00:00
Gilles Sadowski
4ece62e101
MATH-894
...
Removed call to "contract" in "addElement".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407485 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 15:15:11 +00:00
Gilles Sadowski
3456d2a12a
MATH-887
...
Renamed "computeJacobian" to "computeWeightedJacobian" to relect what is
actually done.
Made "setCost" a "protected" method (as it should only be modified according
to the optimum found by the subclass's algorithm (defined in "doOptimize()").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407478 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 14:57:10 +00:00
Gilles Sadowski
ca08d0e8b1
MATH-887
...
In "LevenbergMarquardtOptimizer", removed usage of deprecated fields and
methods from its base class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407467 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 14:30:49 +00:00
Sebastien Brisard
a8045be9dd
In shell script RealFunctionValidation.sh, pass command line argument to java
...
app.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407384 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:50:04 +00:00
Sebastien Brisard
e54d3237a3
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407382 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:47:38 +00:00
Sebastien Brisard
a6f3c8e178
Ignore *.dat files, which might be generated by the *.mac Maxima scripts.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407378 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:29:00 +00:00
Sebastien Brisard
d177a29813
Properties files to be used with RealFunctionValidation, for functions
...
Gamma.logGamma and Gamma.gamma.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407377 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:24:16 +00:00
Sebastien Brisard
b04b10ca6e
Small java application for the accuracy assessment of implementations of real
...
functions in Commons Math. The accuracy is assessed through comparison with
reference values computed with multi-precision softwares.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407376 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 08:13:18 +00:00
Gilles Sadowski
37791912c6
"final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407037 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 12:59:07 +00:00
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
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
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
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
Gilles Sadowski
bfbb156dfb
MATH-867
...
Previous commit was missing a crucial modification (in the "repair" method),
an inconsistency which entailed the failing of some tests.
With that modification (thanks to Nikolaus Hansen), it was established that
the "encode" and "decode" steps were indeed useless. This commit thus removes
them, and all the code that was necessary only because of those two methods.
Finite and infinite can now be freely mixed.
Unit tests that depended on those limitations were also removed (thus also
the one that was added following MATH-865).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391908 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 22:18:18 +00:00
Gilles Sadowski
329cf9e8e6
MATH-867
...
Modified "encode" and "decode" methods. Unit test "testFitAccuracyDependsOnBoundary"
now passes and is thus enabled. Unit test "testConstrainedRosen" had to be modified
in order to not fail with the new code (starting point is set closer to the solution).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391840 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 16:58:18 +00:00
Gilles Sadowski
678377a1e8
MATH-867
...
Unit test showing the problem. It is disabled (with the "@Ignore" annotation)
because it fails with the current code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391477 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 14:06:19 +00:00
Luc Maisonobe
6129654bc2
Fixed some issues in nth root derivatives at 0.
...
The current behavior is correct with respect to infinities and NaN being
appropriately generated, but in some cases counter-intuitive.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 13:28:42 +00:00
Sebastien Brisard
e1ed0b96ba
User's Guide, Special Functions: changed the introduction, as special functions
...
should not be considered as a by-product of Commons-Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391304 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:25:06 +00:00
Sebastien Brisard
07f51c0dea
User's guide for special functions now uses the APT format, instead of the XDOC
...
format.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 05:14:10 +00:00
Sebastien Brisard
9462626718
MATH-854: filled the "throws" clause of BlockRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391160 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 18:42:45 +00:00
Sebastien Brisard
2a32964f25
Populated throws clause of OpenMapRealMatrix (MATH-854).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390842 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 05:04:10 +00:00
Sebastien Brisard
8708ef28f2
MATH-870: deprecated SparseFieldMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390832 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:54:04 +00:00
Sebastien Brisard
3a3fec3bb2
MATH-870: deprecated SparseRealMatrix and OpenMapRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390831 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:52:34 +00:00
Sebastien Brisard
9cf853b3fc
MATH-870: deprecated SparseFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390829 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:49:54 +00:00
Sebastien Brisard
b894782174
MATH-870: javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390828 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:48:44 +00:00
Sebastien Brisard
e2bab1ae13
MATH-870: deprecated OpenMapRealVector, SparseRealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390684 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 19:17:29 +00:00
Gilles Sadowski
dadeacc23e
MATH-853
...
New exception intended to become, as of release 4.0, the base class for
all CM exceptions (except "NullArgumentException").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390354 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 09:39:19 +00:00
Sebastien Brisard
2ff6587c4e
In AbstractRealMatrix, provided empty implementations to methods
...
- createMatrix(int, int),
- copy(),
- getEntry(int, int),
- setEntry(int, int).
This allows the use of the @Override tag in classes Array2DRowRealMatrix, BlockRealMatrix,
OpenMapRealMatrix with java 5.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1390302 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 07:24:35 +00:00
Thomas Neidhart
774257e3a7
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389866 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:56:57 +00:00
Luc Maisonobe
282bb0eaa6
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389858 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 13:29:16 +00:00
Phil Steitz
ecd4748cdf
Added tests confirming exception behavior for regress(double[]).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389150 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 21:42:51 +00:00
Thomas Neidhart
ad252a8ca3
[MATH-848] Fixed Schur transformation for certain input matrices, changed index parameter names to indicate their purpose.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389129 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 19:34:02 +00:00
Gilles Sadowski
eda482d9f9
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388766 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 10:02:53 +00:00
Gilles Sadowski
f33f1fb501
MATH-860
...
Matrix "block inversion".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388555 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:41:06 +00:00
Gilles Sadowski
5144e1d878
MATH-865
...
Update "changes" file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:34:03 +00:00
Gilles Sadowski
b55e020684
MATH-865
...
Early detection that overflow will occur in the variables normalization
procedure ("encode" method). Warning mentioned in the documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388552 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:32:18 +00:00
Gilles Sadowski
abe53a537b
MATH-864
...
Fixed missing "repair" of a point that lies outside the boundaries. Thanks
to Frank Hessen for the report and for pinpointing the cause of the problem.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388517 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 14:17:37 +00:00
Gilles Sadowski
ce118ef14a
MATH-863
...
Patch provided by Julien Anxionnat:
* method name change,
* bug fix and unit test for "dotProduct" (instance method).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388406 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 10:42:30 +00:00
Sebastien Brisard
9146a58024
In AbstractRealMatrix, removed orphan javadoc comment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388298 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:56:06 +00:00
Sebastien Brisard
95bf9fb6cf
In AbstractRealMatrix, removed empty abstract method copy() (specified in interface RealMatrix).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388296 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:53:28 +00:00
Sebastien Brisard
d2258eff70
Removed some @Override tags, which have become illegal following some changes in r1388154.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388294 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 01:49:51 +00:00
Sebastien Brisard
b2cea08e85
MATH-854
...
- filled the "throws" clause of Array2DRowRealMatrix,
- corrected some method signatures in RealMatrix and AbstractRealMatrix accordingly,
- in AbstractRealMatrix, removed "abstract implementations" of some methods specified in interface RealMatrix, as they serve no purpose.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388154 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 18:50:45 +00:00
Gilles Sadowski
7a74137904
MATH-863
...
New "Quaternion" class. Thanks to Julien Anxionnat.
After applying the original patch, the following changes were made:
* Renamed the "static" quaternion instances ("PLUS_" prefix removed).
* Removed some (syntactic sugar) methods; removed or modified corresponding
unit tests.
* Made the redundant accessors call the "canonic" ones.
* Removed the default tolerance and added an explicit tolerance parameter
in methods that depend on equality testing.
* When a "ZeroException" is thrown, the actual value of the norm is provided
in the detailed message (as the implementation actually does not use a
strict comparison with 0).
* Added "equals(Object)" and "hashCode" methods.
* Javadoc and formatting. Added license header.
* Removed "toString" documentation (as this representation should not be
binding). Changed the representation to not use a comma.
* Renamed "scalarMultiply" to "multiply".
* More stringent tolerance used in the unit tests assertions, whenever
possible.
* Added unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388099 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 16:21:46 +00:00
Gilles Sadowski
600f00ba58
MATH-866
...
Method to test for equality with a given relative tolerance (due to
Yannick Tanguy and Julien Anxionnat). Original patch provided in
JIRA MATH-863 and committed with a few changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387941 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 10:09:37 +00:00
Thomas Neidhart
b245e08d24
Removed exception from throws clause which is never thrown.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387637 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 15:21:57 +00:00
Thomas Neidhart
322fde4ec5
Javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387635 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 15:15:43 +00:00
Luc Maisonobe
a20a890fa6
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387501 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 09:12:01 +00:00
Luc Maisonobe
c390c53c22
Removed dead test code.
...
The code was never used and was an implementation of a now deprecated
interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387084 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 10:30:01 +00:00
Luc Maisonobe
5259df5f91
Fail early on wrong derivation order.
...
If the user asks for a derivation order that is too large for the number
of points in the finite differences algorithm, we now detect it before
the first call to the underlying function.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387064 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 09:07:54 +00:00
Sebastien Brisard
19c954cabc
MATH-854: populated throws clause of AbstractRealMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387002 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 06:38:33 +00:00
Luc Maisonobe
830cd9eeca
Added a FiniteDifferencesDifferentiator class.
...
This class implements both UnivariateFunctionDifferentiator,
UnivariateVectorFunctionDifferentiator and
UnivariateMatrixFunctionDifferentiator. It is not limited in the
derivation order, but checks the order is consistent with the number of
points. Typically, attempting to extract 5th derivative from a 3 points
scheme will not work (a NumberIsTooLargeException will be thrown,
referencing the derivation order).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386745 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:42:47 +00:00
Luc Maisonobe
3876bd9bc4
Added a way to create DerivativeStructure from all derivatives.
...
In some cases, users may already have all the derivatives available at
once. It was impossible to use this knowledge and create the object, so
users had to user dirty tricks like adding together variables holding
value and zero derivative with variables holding derivatives and zero
value.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386743 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:42:19 +00:00
Luc Maisonobe
be26e43b98
Added differentiator interfaces for vector and matrix functions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386742 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:41:54 +00:00
Luc Maisonobe
69f087edcb
Differentiable function can trigger any MathIllegalArgumentException.
...
One very important case corresponds to an unsupported derivation order.
The order is not enforced in the API, but is specified as the properties
of the DerivativeStructure argument, as well as the number of free
parameters. Some functions have no limitation on this order (typically
functions implemented using only the DerivativeStructure API), but some
functions may limit the derivation order to 1 or 2 as they implement the
differentiation themselves or through finite differences.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386741 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 17:41:24 +00:00
Sebastien Brisard
06880f1138
Populated throws clause of RealMatrix (MATH-854); javadoc + formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1386486 13f79535-47bb-0310-9956-ffa450edef68
2012-09-17 06:48:04 +00:00
Phil Steitz
dae4cf5da1
Added missing throws declarations and fixed javadoc to match what is actually thrown. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385386 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 22:11:15 +00:00
Thomas Neidhart
0752ffec8f
[MATH-666] added to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385318 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:54:20 +00:00
Thomas Neidhart
79f99111d5
[MATH-666] make FieldVector#getData() method deprecated in favor of toArray(), minor formatting, move implementation of SparseFieldVector#getData() to toArray().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385316 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:50:32 +00:00
Thomas Neidhart
1f914f9917
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385315 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:37:34 +00:00
Thomas Neidhart
b694b79c60
Javadoc formatting and fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385314 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:35:49 +00:00
Thomas Neidhart
be41bc2053
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385313 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:35:23 +00:00
Thomas Neidhart
7536672818
Javadoc cleanup of transform package, removed unnecessary paragraph tags.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385310 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:32:10 +00:00
Thomas Neidhart
75fe8b8b99
Javadoc cleanup of linear optimization package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385307 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:19:55 +00:00
Thomas Neidhart
0a900fa692
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385301 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:11:53 +00:00
Thomas Neidhart
9ad58f46b0
Replace deprecated method call.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385299 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:09:17 +00:00
Thomas Neidhart
497fe1c79b
Remove trailing spaces in javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385298 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:09:00 +00:00
Thomas Neidhart
1a9e32ab8f
[MATH-854] fill throws clause for genetics package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385297 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:05:57 +00:00
Thomas Neidhart
ef8beb8b2b
Javadoc cleanup of genetics package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385284 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 15:19:55 +00:00
Thomas Neidhart
6709b11f9e
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385279 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 15:06:06 +00:00
Thomas Neidhart
51f446bf0c
[MATH-789] Fixed rank calculation in case of dependant columns, added additional constructor that repaces small parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384945 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 21:55:46 +00:00
Luc Maisonobe
c8b8e61243
Use the new differentiation framework in optimization package.
...
As a temporary hack for backward compatibility, some optimizers do
provide "optimize" methods which accept the new functions signatures
(i.e. MultivariateDifferentiableXxxFunction), but they do *not*
advertise it in their "implements" clause. The reason for that is that
Java forbid implementing a parameterized interface with two different
parameters. These optimizers already implement the interface with the
older functions signatures, and this cannot be removed as of 3.1.
When 4.0 will be started, the old signatures will be removed, and the
"implements" declarations will be updated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384907 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 20:17:00 +00:00
Luc Maisonobe
8bac3361f2
Fixed too large memory consumption in DSCompiler.
...
Prior to this correction, when at one point in a program a user needed a
derivative with 1 parameter and order 5, and at another point needed a
derivative with 30 parameters and order 1, all DSCompilers from 1x1 to
30x5 were created. As the compilation rules for 30 parameters and 5
order are huge, this failed with memory heap errors after several
gigabytes were consumed.
The fix is to simply build the necessary compilers, and let the array
contain null references for the compilers never used (these null
references will be populated later if the user ask for some intermediate
value that need them, of course).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384905 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 20:16:05 +00:00
Sebastien Brisard
1c032ee454
- Populated throws clause of FieldVector, ArrayFieldVector, SparseFieldVector (MATH-854).
...
- Added some missing precondition checks.
- Corrected some mistakes in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384654 13f79535-47bb-0310-9956-ffa450edef68
2012-09-14 06:42:06 +00:00
Sebastien Brisard
aa0b1cc788
MATH-854: in FieldVector and ArrayFieldVector, reverted to r1383770.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384471 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 19:00:51 +00:00
Thomas Neidhart
406a6ae49d
Fixed typo and formatting in changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384454 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:21:05 +00:00
Thomas Neidhart
70b769ec7f
Fixed typo in changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:18:36 +00:00
Luc Maisonobe
621bbb8fc7
Fixed an error in rectangular Cholesky decomposition.
...
JIRA: MATH-789
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384363 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 15:13:03 +00:00
Sebastien Brisard
8469bc496c
MATH-854: document all exceptions in ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 06:11:05 +00:00
Sebastien Brisard
10af7e2b2f
MATH-854: in interface FieldVector, some more exceptions are *documented* (as recommendations), but not *specified*.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384211 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 06:10:06 +00:00
Sebastien Brisard
443f412728
MATH-854: in interface FieldVector, replaced throws statements with javadoc comments.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384082 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 18:37:46 +00:00
Luc Maisonobe
84f92e1928
Added a wrapper class to compute Jacobian from differentiable function.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383886 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 11:23:23 +00:00
Luc Maisonobe
88678b58a4
Added a wrapper class to compute gradient from differentiable function.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383885 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 11:22:56 +00:00
Luc Maisonobe
6fe3ae0e6c
Deprecated DifferentiableUnivariateMatrixFunction interface.
...
This interface is in fact never used in the library...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383854 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:55:32 +00:00
Luc Maisonobe
d2f23bba39
Fixed typo in interface name.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383853 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:55:13 +00:00
Luc Maisonobe
b8de2704ac
Deprecated DifferentiableUnivariateVectorFunction.
...
This interface is in fact never used in the library...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383852 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:54:40 +00:00
Luc Maisonobe
85bab3ba61
Deprecated DifferentiableUnivariateFunction.
...
The interface and its implementations should be removed for 4.0. The
remaining uses in the library are only there for compatibility.
Everything else now use the new UnivariateDifferentiableFunction
interface and DerivativeStructure, which allow both arbitrary
differentiation order and arbitrary number of free parameters.
The next step for 3.1 is to replace the multidimensional functions (i.e.
multivariate functions, vector valued functions and matrix valued
functions).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383845 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 08:34:10 +00:00
Sebastien Brisard
47e5bb380e
Removed LocalizedFormats.ENTRY previously introduced in r1383747, as LocalizedFormats.INDEX will do nicely.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383770 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 04:43:38 +00:00
Sebastien Brisard
f0921e844d
MATH-854: fill the "throws" clause of FieldVector, ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383760 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 04:27:47 +00:00
Sebastien Brisard
b30425df87
Added new localized error message "entry {0}" to signal null entries in FieldVectors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383747 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 03:46:31 +00:00
Sebastien Brisard
ffe65f8eac
MATH-854: fill the "throws" clause of RealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383743 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 03:18:46 +00:00
Luc Maisonobe
cc22b4d09b
Added arbitrary differentiation order for Hermite interpolator.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 15:33:37 +00:00
Luc Maisonobe
76e8646b95
Added interfaces for differentiable multidimensional functions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383450 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 15:33:10 +00:00
Luc Maisonobe
f4cd0eec56
Renamed UnivariateDifferentiable into UnivariateDifferentiableFunction.
...
The "Function" part of the name was forgotten when this new interface
was created a few weeks ago, for replacing the older
DifferentiableUnivariateFunction.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383441 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 14:56:39 +00:00
Luc Maisonobe
226145f46d
Added arbitrary order derivative for polynomials in Newton form.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383437 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 14:42:44 +00:00
Luc Maisonobe
e0557c2c89
added a few UML diagrams.
...
The diagrams are not used in the documentation yet, they are only kept for reference and may be removed later.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383287 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 08:37:52 +00:00
Sebastien Brisard
5998035a9f
MATH-854: fill the "throws" clause of ArrayFieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1383052 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 19:05:54 +00:00
Sebastien Brisard
a70cb1668e
Removed unused @throws Javadoc tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382998 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 17:42:53 +00:00
Sebastien Brisard
7146906696
MATH-854: fill the "throws" clause of FieldVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382993 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 17:31:51 +00:00
Luc Maisonobe
22bcab04fe
Updated throws declarations for transform package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382906 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:48:03 +00:00
Luc Maisonobe
b883dcbc08
Updated throws declaration for random package (and part of
...
distribution).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382904 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:47:45 +00:00
Luc Maisonobe
0955f5db17
Replaced factory using Object with type-safe version.
...
Only two types of adapters were used: double array and stream, in a
private internal factory. This has been suppressed so each adapter is
bioth type safe and returns only the exceptions it can trigger.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382902 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:47:19 +00:00
Luc Maisonobe
e46f4c0c05
Removed too aggressive checks for impossible errors.
...
The checks were added recently as part of throws declaration updates. In
theses cases, the exception cannot be triggered. No throws declarations
are needed and in fact wrapping the impossible exceptions in
MathInternalError is simply too much.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382887 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 14:37:27 +00:00
Phil Steitz
9e69a34008
Added missing throws declarations. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382537 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 16:43:27 +00:00
Gilles Sadowski
f947c72da7
MATH-855
...
In case of tie, return the "oldest" point.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382441 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 10:40:55 +00:00
Phil Steitz
9e2e73e4ec
Added missing throws declarations, suppressed warnings. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382389 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 01:47:34 +00:00
Phil Steitz
11bc47878c
Removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382382 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:56:11 +00:00
Phil Steitz
66dece126a
Clarified definition of isSupportXxxBoundInclusive in RealDistribution interface,
...
made code consistent with the definition, and deprecated these methods, marking
for removal in 4.0.
JIRA: MATH-859
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382380 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:15:32 +00:00
Phil Steitz
2d2912e4a1
Eliminated no longer accurate implementation reference.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382335 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:48:08 +00:00
Phil Steitz
ae26b9bf23
Added throws declarations, improved javadoc, made Kurtosis increment consistent with other moment statistics. JIRA: MATH-854.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 17:27:47 +00:00
Gilles Sadowski
b8f2fb815f
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382197 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 22:35:01 +00:00
Gilles Sadowski
ac597cc172
MATH-855 (second take).
...
Best point must be returned.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382070 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 15:43:40 +00:00
Sebastien Brisard
ad923872f3
MATH-854: fill the "throws" clause of OpenMapRealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381730 13f79535-47bb-0310-9956-ffa450edef68
2012-09-06 19:42:35 +00:00
Gilles Sadowski
d3cfd50cfc
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381410 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 21:52:42 +00:00
Thomas Neidhart
86321681e7
Add throw declarations for filter package, javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381332 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 20:06:07 +00:00
Thomas Neidhart
5082325771
Javadoc formatting cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381310 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 19:22:17 +00:00
Luc Maisonobe
366d796c36
Added throw declarations for package dfp.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381285 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:28 +00:00
Luc Maisonobe
54d00b13c6
Added throw declarations for package complex.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381284 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:30:08 +00:00
Luc Maisonobe
1dd611f794
Added throw declarations for package util.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381283 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:29:47 +00:00
Luc Maisonobe
003f022df4
Added throw declarations for FieldElements.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381282 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 18:23:54 +00:00
Gilles Sadowski
52582d8c45
Update for MATH-841 and MATH-855.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:51:46 +00:00
Gilles Sadowski
68fe06032a
MATH-841
...
Performance improvement in method "gcd(int, int)" (~2 to 4 times faster than
the previous implementation). Thanks to Sebastien Riou.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381206 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:46:59 +00:00
Gilles Sadowski
350f726ce5
MATH-855
...
The best point is sometimes not the last one evaluated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381195 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:22:44 +00:00
Phil Steitz
04b34cc1a5
Added density - cdf consistency test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381029 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 06:53:45 +00:00
Sebastien Brisard
8a0fef0fb7
MATH-854: fill the throws clause of all methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380444 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 04:10:09 +00:00
Sebastien Brisard
4e7d797b1c
MATH-854: fill the throws clause of all methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380440 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 03:08:31 +00:00
Sebastien Brisard
56a22909a1
MATH-854: populate the throws clause in package o.a.c.m.linear.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1380122 13f79535-47bb-0310-9956-ffa450edef68
2012-09-03 03:54:23 +00:00
Luc Maisonobe
9e933debcb
Populate throws declarations for geometry package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379977 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:22:52 +00:00
Luc Maisonobe
e8e94f5936
populate throws declaration for ODE package
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379975 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:21:00 +00:00
Luc Maisonobe
46d95b23ff
Updated error message with new parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379974 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:55 +00:00
Luc Maisonobe
449f2d4f79
Javadoc formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379973 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 14:19:10 +00:00
Gilles Sadowski
98e56e813d
"final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379905 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:56:50 +00:00
Gilles Sadowski
aa79abed6d
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379904 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 23:54:52 +00:00
Gilles Sadowski
0af91ecfbe
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379560 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 19:40:30 +00:00
Sebastien Brisard
86f09b3e1f
MATH-849: added new test in GammaDistributionTest to check that new
...
implementation of Gamma.logGamma does not compromise the resolution of
MATH-735.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379271 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:14:03 +00:00
Sebastien Brisard
aa2da41c68
MATH-849: changed boundary case x = 8.0 in double Gamma.logGamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379270 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 03:12:16 +00:00
Sebastien Brisard
4a15003955
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379262 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:51:24 +00:00
Sebastien Brisard
cf1f553dc6
MATH-849: implementation of double Gamma.gamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379261 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:48:29 +00:00
Sebastien Brisard
c1c7da271b
MATH-849: further tests of double Gamma.logGamma(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379256 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:13:25 +00:00
Sebastien Brisard
c4f81a87ee
MATH-849: unit tests for double Gamma.logGamma1p(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379255 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 02:01:11 +00:00
Sebastien Brisard
1398a16c7c
Formatting (removed Eclipse tags @formatter:on, @formatter:off)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379254 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:59:12 +00:00
Sebastien Brisard
99a9552531
MATH-849: unit tests for double Gamma.invGamma1pm1(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:57:50 +00:00
Sebastien Brisard
8a3dd3725f
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379252 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:53:19 +00:00
Sebastien Brisard
74b5b44868
MATH-849: refined the test of logGamma(x) near x = 1.0, 2.0 and 3.0, which
...
were difficult zones in the previous (Lanczos) implementation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379247 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 01:31:47 +00:00
Gilles Sadowski
8170e47c22
MATH-854
...
Populate "throws" clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379218 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 23:18:57 +00:00
Sebastien Brisard
b6bf913d14
MATH-849: new implementation of double Gamma.logGamma(double x) for x < 8.0.
...
This greatly improves the accurarcy, from more than 130 ulps down to 3 ulps.
Unit tests updated accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378450 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 06:20:21 +00:00
Sebastien Brisard
6d0dcae172
In GammaDistributionTest, inlined previous implementation of
...
double Gamma.logGamma(doubl)) in order to allow for comparison with new
implementation.
This is in preparation of MATH-849.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378440 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 04:28:47 +00:00
Gilles Sadowski
f394970a17
Re-instated "dotProduct" method whose removal breaks backward compatibility.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378083 13f79535-47bb-0310-9956-ffa450edef68
2012-08-28 11:35:35 +00:00
Thomas Neidhart
74cf48bee7
Fixed typo, indentation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377302 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 14:11:42 +00:00
Luc Maisonobe
c768e7288a
Integrated the new differentiation framework in the solvers package.
...
As discussed on the developers mailing list, a separate
NewtonRaphsonSolver has been set up using the new interfaces, and the
older NewtonSolver has been deprecated. It should be removed in 4.0.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377245 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:06:00 +00:00
Luc Maisonobe
f3f5800a4c
Removed compilation warnings related to deprecated classes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377244 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:05:13 +00:00
Sebastien Brisard
e9b6a4ffb3
In Gamma.logGamma, replaced local variable g with class variable LANCZOS_G.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1376835 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 06:23:34 +00:00
Phil Steitz
7b1b5e529c
Added deprecation that should have been included in r1375192. JIRA: MATH-850.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1375722 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 19:17:56 +00:00
Phil Steitz
2c8cfb1aa7
Added RandomDataGenerator to replace RandomDataImpl and deprecated
...
RandomData interface and RandomDataImpl class. Deprecated
nextInversionDeviate methods from RandomDataImpl class. Ensured that
all nextXxx methods in RandomDataImpl/RandomDataGenerator use the
configured RandomGenerator.
JIRA: MATH-850
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1375192 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 19:53:57 +00:00
Sebastien Brisard
74d366c819
MATH-849: new unit test showing the relative accuracy of
...
Gamma.logGamma(double).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374909 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 03:40:58 +00:00
Luc Maisonobe
f936520bfa
use the new function objects were possible in tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374632 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:11:11 +00:00
Luc Maisonobe
4fd62ba05b
the regular function objects (Acos, Sqrt, ...) now implement the new UnivariateDifferentiable interface.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374631 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:10:34 +00:00
Luc Maisonobe
63d00ba803
Polynomials now implement the new UnivariateDifferentiable interface.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374630 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:09:45 +00:00
Luc Maisonobe
09463e6705
added utilities for differentiable functions
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374629 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:09:21 +00:00
Luc Maisonobe
93d37df3b3
renamed UnivariateDifferential into UnivariateDifferentiable
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374628 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:57 +00:00
Luc Maisonobe
f175f37038
Typo in comment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374627 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:29 +00:00
Luc Maisonobe
f3f3fc2595
Added compose to the public API of DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374626 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 18:08:02 +00:00
Gilles Sadowski
b23e1c330e
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374493 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:10:20 +00:00
Gilles Sadowski
8abe21fe47
Code cleanup: Moved all computations to the constructor, allowing the class
...
to be immutable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374492 13f79535-47bb-0310-9956-ffa450edef68
2012-08-18 01:09:25 +00:00
Sebastien Brisard
fea45dcee8
Checkstyle: missing license.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374396 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 18:54:06 +00:00
Sebastien Brisard
67dcc70533
MATH-843: integrated changes suggested by Dominik Gruntz.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374395 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 18:45:49 +00:00
Gilles Sadowski
43c489d7cb
Code cleanup: moved all computations to the constructor, allowing to make
...
the class immutable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374308 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 15:09:59 +00:00
Gilles Sadowski
bd59fee7a6
Code comment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374187 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 09:50:54 +00:00
Luc Maisonobe
64a7948cee
Added log10 to DerivativeStructure and DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:28 +00:00
Luc Maisonobe
d48f623281
Changed parameters name for consistency with getters and DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374161 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:05 +00:00
Gilles Sadowski
acaf4d9caa
Change suggested by "FindBugs".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374071 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:35:14 +00:00
Gilles Sadowski
02123844e8
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374065 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:22:09 +00:00
Gilles Sadowski
b1741d1b46
Precondition check.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374054 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:00:39 +00:00
Gilles Sadowski
7994d3ee9d
MATH-844
...
Generate an exception when the parameter guessing procedure cannot perform
correctly (in rare ill-conditioned cases).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374046 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:43:59 +00:00
Thomas Neidhart
91d24dcb6f
Disabled random data tests for eigen decomposition, improved checkUnsymmetricMatrix helper.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374031 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:14:15 +00:00
Luc Maisonobe
f06fe1c098
Added toDegrees and toRadians to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:08:17 +00:00
Luc Maisonobe
d26fd0236a
Added signum to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373781 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:59 +00:00
Luc Maisonobe
7b090c5eec
Added rint and round to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373780 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:42 +00:00
Luc Maisonobe
486224fd36
Added getExponent, scalb and hypot to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373779 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:26 +00:00
Luc Maisonobe
4c56e61497
Added expm1 and log1p to DSCompiler and DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373778 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:08 +00:00
Luc Maisonobe
68c813c945
Added copySign to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373777 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:50 +00:00
Luc Maisonobe
70ea046932
Added ceil and floor to DerivativeStructure.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373776 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:33 +00:00
Luc Maisonobe
09b90da825
Added abs to DerivativeStructure.
...
We handle +0.0/-0.0 correctly, i.e. we flip derivatives sign when value
is negative zero.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373775 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:16 +00:00
Thomas Neidhart
4e72620a37
Fix RealMatrixFormatTests to always use a fixed locale instead of the default one.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373554 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:30:18 +00:00
Thomas Neidhart
c90de5a469
Use fixed locale for matrix formatter to prevent decimal point problems.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373551 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:24:25 +00:00
Gilles Sadowski
9b5b8d7d45
Fixed FindBugs warning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373134 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 22:02:06 +00:00
Thomas Neidhart
16a5a02a84
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373026 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 18:50:53 +00:00
Luc Maisonobe
ff43dac3d2
Added hyperbolic trigonometric functions and inverses to DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372902 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 14:25:50 +00:00
Luc Maisonobe
6f859c5f5b
Simplified tangent higher derivatives computation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372812 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 09:45:36 +00:00
Gilles Sadowski
30866a4cd3
MATH-815
...
Unit test update (patch provided by Jared Becksfort).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372556 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 19:14:00 +00:00
Luc Maisonobe
b6d4068162
Added Taylor expansion for DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372432 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 14:14:17 +00:00
Luc Maisonobe
07aa93aae7
Added support for atan2 in DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372414 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 13:06:26 +00:00
Gilles Sadowski
1ec0b8d527
Fixed CheckStyle warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372208 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 22:55:34 +00:00
Gilles Sadowski
0f9adb1875
Code cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372199 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 21:22:58 +00:00
Luc Maisonobe
33877ac5ed
Added support for x^y in DerivativeStructure and DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371808 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 18:58:58 +00:00
Luc Maisonobe
d05fac054e
Completed support fo asin, acos and atan in DSCompiler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371805 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 18:33:06 +00:00
Luc Maisonobe
b46cdf1bd6
Added forgotten notification of recent changes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371683 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:19:48 +00:00
Luc Maisonobe
be1632f3e3
New test for sin and cos derivatives.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371681 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:18:12 +00:00
Luc Maisonobe
add45005fc
Added Stirling numbers of the second kind in ArithmeticUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371680 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:15:23 +00:00
Luc Maisonobe
f2fe724505
Forward the underlying error message when an exception is triggered.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371671 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:59:20 +00:00
Luc Maisonobe
746c998e1a
Fixed accuracy issues in FastMath.pow(double, int).
...
The fixed version is slightly slower, but still much faster than
FastMath.pow(double, double). Some random testing showed that the
accuracy is now always better than 0.5ulp, even for large exponent.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371670 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:54:46 +00:00
Gilles Sadowski
f465d0aa69
Code and javadoc cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371264 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 15:55:18 +00:00
Gilles Sadowski
dbe216ce60
Unit test for "FastMath.pow(double,int)".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371170 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:40:01 +00:00
Luc Maisonobe
0ee65b7169
added a function to raise a double to an int power
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371082 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 08:07:25 +00:00
Luc Maisonobe
6e85e1c837
partially reverted commit 1370951 as it trashed earlier correction in FastMath
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371073 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 07:54:06 +00:00
Gilles Sadowski
f040e261bf
MATH-815
...
Code update. Unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370984 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 21:52:22 +00:00
Luc Maisonobe
87b597c622
Added a new package dealing with differentials.
...
The package is intended to deals with one or more free parameters and
derivation order 1 or higher.
The core elements are based on Dan Kalman paper "Recursive Multivariate
Automatic Differentiation", Mathematics Magazine, vol. 75, no. 3, June
2002. For efficiency, the recursive structure is compiled as simple
loops once for each pair (number of free parameters, derivation order).
This is work in progress, there are still some features missing even in
the most basic blocks (typically the asin, acos, atan, atant2 and taylor
methods in DSCompiler). There are also still no high level
differentiator implementation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370951 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 20:33:43 +00:00
Gilles Sadowski
13f4032d6c
MATH-815
...
Initial commit. Units test are yet to be added. This version also
contains a bug. Code contributed by Jared Becksfort, included with
modifications. [Cf. comments on JIRA.]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 14:18:16 +00:00
Gilles Sadowski
5827a6faad
MATH-843
...
Corrected documentation for "Precision.EPSILON".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370547 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 21:38:58 +00:00
Sebastian Bazley
5add6876dc
MIssing @Override
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370228 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:49:31 +00:00
Sebastian Bazley
12983d5e04
MIssing @Override
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370227 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:48:25 +00:00
Sebastian Bazley
404b6196a5
Javadoc fixes (not thrown)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370224 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:43:41 +00:00
Sebastian Bazley
8d97496f8d
Raw types
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370220 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:42:33 +00:00
Sebastian Bazley
2e16492cbf
Missing @Deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370219 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:40:56 +00:00
Sebastian Bazley
88c71ec9d7
Unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370217 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:39:29 +00:00
Sebastian Bazley
8fd9c6eee0
Missing @Deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370215 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:59 +00:00
Sebastian Bazley
e3ec8ebcf0
Javadoc syntax
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370214 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:39 +00:00
Sebastian Bazley
aef4dd02f9
Javadoc syntax
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370211 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:06 +00:00
Sebastian Bazley
1b434bcd8e
Add comment as to why equals() and hashCode() are not implemented
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370149 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 08:58:37 +00:00
Gilles Sadowski
6c8f74edd8
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369795 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 12:00:27 +00:00
Thomas Neidhart
68486630e0
Added MATH-777 to changes.xml, thanks to Reid Hochstedler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369663 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:20:43 +00:00
Thomas Neidhart
def7c9911a
[MATH-777] Added OrderedCrossover policy.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369658 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:03:28 +00:00
Phil Steitz
1a44ba4b61
Fixed failing test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369654 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 19:48:31 +00:00
Thomas Neidhart
bd0008e809
[MATH-777] Added CycleCrossover policy.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369637 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 18:46:54 +00:00
Thomas Neidhart
0b1a5c1415
Added MATH-828 to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369616 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 16:32:52 +00:00
Thomas Neidhart
c2811e767d
Fix findbugs warning, use strict comparison for negative values.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369597 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 14:11:27 +00:00
Thomas Neidhart
efb3e07afe
Fixed warnings spotted by checkgilles.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369591 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 14:00:33 +00:00
Thomas Neidhart
d880dddc55
Fixed findbugs finding when comparing Integer references.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369540 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 09:32:46 +00:00
Gilles Sadowski
4104b21368
MATH-840
...
Fixed invalid argument to "asin" and "acos".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369514 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 02:37:15 +00:00
Gilles Sadowski
b6e62ab83a
MATH-740
...
Grabbing a few percents performance for "log".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369506 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 23:11:45 +00:00
Gilles Sadowski
bfdf1c44af
MATH-839
...
Indicating changes that cannot be performed before 4.0 (new method
"probability(double,double)" can be only added to the interface in
a major release).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369420 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 19:40:03 +00:00
Gilles Sadowski
ef205a5d1a
MATH-839
...
Created new method "probability(double,double)" in implementations were
it it overridden, and deprecated "cumulativeProbability(double,double)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369415 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 19:24:56 +00:00
Gilles Sadowski
5396f1e119
MATH-839
...
Added new method "probability(double, double)" to "AbstractRealDistribution".
Deprecated "cumulativeProbability(double, double)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369381 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 18:06:59 +00:00
Thomas Neidhart
b68fc58a61
Added MATH-836 to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369359 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 16:22:52 +00:00
Gilles Sadowski
6ec0872f28
MATH-838
...
Moved the "probability(double)" method to the parent class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369202 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 20:50:33 +00:00
Gilles Sadowski
44b2830b88
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369188 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 19:59:36 +00:00
Gilles Sadowski
db540a6b91
Javadoc, formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369101 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 17:15:38 +00:00
Gilles Sadowski
c25dbeec0f
MATH-834
...
Replaced calls to the various sampling methods in "RandomDataImpl" by their
equivalent "sample" method in the distribution classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1368738 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 22:18:08 +00:00
Thomas Neidhart
d7c0f27e9f
[MATH-836] Improve overflow check for negative values in Fraction constructor.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1368253 13f79535-47bb-0310-9956-ffa450edef68
2012-08-01 21:24:27 +00:00
Gilles Sadowski
63a48705a4
MATH-835
...
Avoid overflow.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367593 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 14:58:01 +00:00
Thomas Neidhart
a49e443c44
[MATH-828] Add additional heuristic for rare cases in pivotRow selection.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367242 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:37:48 +00:00
Thomas Neidhart
107d7f3ea8
Use a TreeSet instead of an ArrayList when dropping columns after phase 1 of the simplex solver to improve performance.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1367227 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:07:05 +00:00
Gilles Sadowski
ebc0d3d309
Reverting changes inadvertently committed in revision 1366821.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366826 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 12:12:11 +00:00
Gilles Sadowski
72779b2300
MATH-622
...
Default is now to print 10 fractional digits.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366821 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 12:05:48 +00:00
Thomas Neidhart
0ed64edde5
Fixed wrong import for FastMath.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366717 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 17:44:32 +00:00
Thomas Neidhart
574c9abbf2
[MATH-828] Fixed numerical instabilities in SimplexSolver leading to unbounded solutions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366707 13f79535-47bb-0310-9956-ffa450edef68
2012-07-28 16:37:40 +00:00
Gilles Sadowski
6b537b20f9
Update "changes" file.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366401 13f79535-47bb-0310-9956-ffa450edef68
2012-07-27 14:59:43 +00:00
Gilles Sadowski
e64d8653d1
MATH-762
...
Created an inner class to collect statements that were duplicated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1366400 13f79535-47bb-0310-9956-ffa450edef68
2012-07-27 14:56:10 +00:00
Gilles Sadowski
b451fdc8e4
MATH-832
...
Unit test showing that the issue is invalid: For the function referred to in
the JIRA ticket, "BrentSolver" and "BrentOptimizer" agree: the same value is
found to be the minimum of the function and the root of the function's
derivative.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1365984 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 13:29:56 +00:00
Gilles Sadowski
0062503cf9
MATH-832
...
Unit test (showing that the report is invalid).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1365963 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 12:25:06 +00:00
Gilles Sadowski
31c3a82d4c
Added "final" keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1365559 13f79535-47bb-0310-9956-ffa450edef68
2012-07-25 12:40:14 +00:00
Thomas Neidhart
7d077b1431
[MATH-831] Use String.length check instead of isEmpty due to jdk1.5 compatibility.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364793 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 20:46:28 +00:00
Thomas Neidhart
2166fdac3d
Use non-deprecated ctor.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364784 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 20:20:07 +00:00
Thomas Neidhart
f20ae062d3
[MATH-235] Added a hasComplexEigenvalues method.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364783 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 20:19:52 +00:00
Thomas Neidhart
01e1e93d6a
Added MATH-831 to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364779 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 20:07:29 +00:00
Thomas Neidhart
5553c97842
[MATH-831] Change default format, add static fields in MatrixUtils, replace toString() implementation in AbstractRealMatrix with the default RealMatrixFormat.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364775 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 19:56:59 +00:00
Gilles Sadowski
303993e923
Fixed typo (svn tag).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364668 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 15:07:39 +00:00
Gilles Sadowski
f51a7ca5fe
Fixed CheckStyle warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364453 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 22:45:15 +00:00
Gilles Sadowski
159ca6ebb9
MATH-827
...
Deprecated "LegendreGaussIntegrator" (superseded by
"IterativeLegendreGaussIntegrator").
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364452 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 22:30:01 +00:00
Gilles Sadowski
28a66efb76
MATH-827
...
New "IterativeLegendreGaussIntegrator" class that performs the same algorithm
as the current "LegendreGaussIntegrator" but uses the recently added Gauss
integration framework (in package "o.a.c.m.analysis.integration.gauss") for
the underlying integration computations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364444 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 21:56:20 +00:00
Thomas Neidhart
463896f1cc
Fix generics warnings in GaussIntegratorFactory.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364420 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 20:01:12 +00:00
Thomas Neidhart
4bef936067
Bit of code cleanup in MullerUpdatingRegression.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364417 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 19:53:53 +00:00
Thomas Neidhart
b19f70ba00
[MATH-831] Add a RealMatrixFormat class to (de-)serialize a RealMatrix from its string representation.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364405 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 19:38:36 +00:00
Thomas Neidhart
438938e558
Fix id tags and svn:keywords for optimization package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364392 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 18:27:12 +00:00
Thomas Neidhart
0d7c65f4bd
Fix id tags for TransformType.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364391 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 18:21:57 +00:00
Thomas Neidhart
758d1329be
Fix id tags and svn:keywords for stat package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364390 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 18:21:02 +00:00
Thomas Neidhart
c03c4a399e
Fix id tags and svn:keywords for util package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364389 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 18:19:26 +00:00
Thomas Neidhart
30a037d240
Fix id tags and svn:keywords in analysis package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364387 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 18:14:11 +00:00
Thomas Neidhart
063515d0aa
Fixed id tag, added svn:keywords for analysis.function package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364377 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:39:16 +00:00
Thomas Neidhart
85ea9b32bd
Added missing keywords setting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364376 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:29:45 +00:00
Thomas Neidhart
5e76de1cc9
Removed unneeded import, fix id tag in header.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364374 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:27:02 +00:00
Thomas Neidhart
bcd6ebb554
Removed unnecessary return statements, reported by pmd.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364372 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:24:20 +00:00
Thomas Neidhart
2f013e3746
Combined two subsequent if statements, reported by pmd.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364371 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:23:12 +00:00
Thomas Neidhart
8b7f2a69cf
Removed unnecessary return statements, reported by pmd.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364369 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:22:05 +00:00
Thomas Neidhart
d66e446778
Removed unnecessary return statements, reported by pmd.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364366 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 17:19:22 +00:00
Thomas Neidhart
e42f60b937
Checkstyle fix wrt unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364329 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 15:30:45 +00:00
Thomas Neidhart
9e9d237ad3
Use non-deprecated ctor.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364328 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 15:29:11 +00:00
Thomas Neidhart
072851608e
[MATH-578] Improve performance of quantile evaluation in Percentile for special cases.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364318 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 15:00:52 +00:00
Gilles Sadowski
6953c29492
MATH-797
...
Attribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364200 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 00:57:41 +00:00
Gilles Sadowski
d8f4cbb539
MATH-797
...
Modified test to be Java5 compatible.
Corrected a bug in the (dummy) rule computation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364137 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 18:14:26 +00:00
Gilles Sadowski
8287659b3d
MATH-797
...
Added unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364075 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 12:47:04 +00:00
Gilles Sadowski
3a87c22aee
MATH-829
...
Removed unnecessary "throws Exception" clause from method signature.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364030 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 01:10:04 +00:00
Gilles Sadowski
aa5e60b456
MATH-829
...
Removed unnecessary (and uninformative) "throws Exception" clauses in
method signature.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364028 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 00:42:49 +00:00
Gilles Sadowski
1fb8df0850
MATH-797
...
Performance: synchronization should ensure that the computation of each
rule will be performed once, even if the factory is accessed from multiple
threads.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364024 13f79535-47bb-0310-9956-ffa450edef68
2012-07-21 00:08:18 +00:00
Gilles Sadowski
6f92d77bb1
Added license header.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363955 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 21:27:21 +00:00
Gilles Sadowski
6aab535162
MATH-797
...
Performance improvement: Caching the converted rules that were already
retrieved, so that the conversion from "Number" occurs only once per rule.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363875 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 17:12:30 +00:00
Gilles Sadowski
d6f70780c9
MATH-764
...
MATH-823
Recovered backward-compatible functionality (removed in r1363604) for
deprecated field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363612 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 01:12:08 +00:00
Gilles Sadowski
9a0794de0f
MATH-764
...
MATH-823
Allow explicit setting of RNG (parameter of the constructor).
Removed dependency on "RandomDataImpl" for the "sample" method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363604 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 00:43:45 +00:00
Gilles Sadowski
7771f5aabe
Typo in svn tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363588 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 23:49:15 +00:00
Gilles Sadowski
178ab444fe
MATH-829
...
Removed "throws" clause from method signature.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363575 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 23:02:47 +00:00
Thomas Neidhart
c56b813444
Fixed checkstyle warning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363565 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 22:02:16 +00:00
Gilles Sadowski
4ca1aec24c
Fixed typo in class name.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363309 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 12:01:05 +00:00
Thomas Neidhart
cb719d1fa8
Add math-235 to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363118 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 21:08:51 +00:00
Thomas Neidhart
1213c8a2dd
[MATH-235] Added random data test for eigen decomposition, improved error handling.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1363105 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 20:49:43 +00:00
Thomas Neidhart
7dd77c4bdf
Relax epsilon criteria for eigen decomposition.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1362665 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 21:30:23 +00:00
Thomas Neidhart
35c5d7143b
Added more random tests for SchurTransformer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1362647 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 21:10:34 +00:00
Thomas Neidhart
d8273182a6
Added more random data tests for HessenbergTransformer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1362645 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 21:07:08 +00:00
Gilles Sadowski
abd69cafa6
Code cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1362032 13f79535-47bb-0310-9956-ffa450edef68
2012-07-16 13:38:12 +00:00
Gilles Sadowski
a05022cbab
MATH-825
...
Deprecated method that should not be part of the public API.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361956 13f79535-47bb-0310-9956-ffa450edef68
2012-07-16 09:57:06 +00:00
Gilles Sadowski
a201eaf582
Fixed CheckStyle warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361839 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 23:42:38 +00:00
Gilles Sadowski
bf2ac35d56
Moved variable declarations closer to their point of use.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361797 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 21:06:33 +00:00
Gilles Sadowski
3ba28fe49d
MATH-768
...
Provided access to methods for finding complex roots of a polynomial in
"LaguerreSolver" class.
Added utility for converting an array of doubles to an array of "Complex"
objects.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361793 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 20:50:13 +00:00
Thomas Neidhart
8b71139a74
[MATH-822] Added new constructors in EigenDecomposition. Thanks to Jared Becksfort for the report.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361587 13f79535-47bb-0310-9956-ffa450edef68
2012-07-14 21:19:36 +00:00
Sebastien Brisard
aad388f4b4
Added @Ignore tags with explanatory messages for unit tests ignored until MATH-821 is solved.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361170 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 11:37:40 +00:00
Gilles Sadowski
d607d9323c
Two failing tests temporarily disabled until MATH-821 is fixed.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361164 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 11:20:42 +00:00
Gilles Sadowski
b8d454adb4
MATH-797
...
Initial version for Gauss-Legendre quadrature rules: the integration is
performed on the whole interval using a single rule. [Whereas the approach
used in class "analysis.integration.LegendreGaussIntegrator" is to divide
iteratively into sub-intervals (over which the integration rule is used)
until some covergence criterion is met.]
Adapted from an original code donated by Sébastien Brisard.
In the current implementation, the Gauss-Legendre rules are computed in
double precision in "LegendreRuleFactory" and high precision (using
"java.math.BigDecimal") in "LegendreHighPrecisionRuleFactory". However,
the "GaussIntegrator" class performs the integration using "double"s
whatever the precision of the rule.
The framework of "BaseRuleFactory" enables the addition of other quadrature
schemes (by overriding the "computeRule" method). [Sébastien's code already
provides Gauss-Chebyshev and Gauss-Hermite schemes (in double precision).]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1360706 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 14:43:18 +00:00
Sebastien Brisard
607c9ec626
MATH-812: fixed a bug in RealVector.outerProduct(RealVector). Now loops through *all* entries of the vectors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1360668 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 13:31:45 +00:00
Sebastien Brisard
6eb4655543
MATH-812: fixed a bug in RealVector.dotProduct(RealVector). Now loops through *all* entries of the vectors.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1360662 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 13:17:08 +00:00
Gilles Sadowski
5cdd5e950c
Typo in userguide.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358535 13f79535-47bb-0310-9956-ffa450edef68
2012-07-07 10:26:33 +00:00
Sebastien Brisard
42596833d5
MATH-795: made some error messages more explicit.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358502 13f79535-47bb-0310-9956-ffa450edef68
2012-07-07 05:17:44 +00:00
Sebastien Brisard
e36f4a730d
MATH-795: final clean-up of ArrayRealVectorTest.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358366 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 19:31:00 +00:00
Sebastien Brisard
c846a2953f
In RealVectorAbstractTest.RealVectorTestImpl, removed
...
- RealVector mapToSelf(UnivariateFunction),
- double[] toArray(),
which override default implementations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358359 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 19:12:52 +00:00
Sebastien Brisard
f838857569
MATH-795: in RealVectorAbstractTest, removed unused class variables.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358355 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 19:07:07 +00:00
Sebastien Brisard
3621d9d559
MATH-795: in RealVectorAbstractTest, removed unused method assertClose.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358353 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 19:05:58 +00:00
Sebastien Brisard
8c10a80525
MATH-795: in RealVectorTest, removed unecessary re-implementation of testAddToEntry.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358349 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 19:02:16 +00:00
Sebastien Brisard
58c9ef25ef
MATH-795: in RealVectorTest, removed
...
- testCombineToSelfPrecondition()
- testCombineToSelf()
which are redundant with other tests already implemented in RealVectorAbstractTest.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358346 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:59:12 +00:00
Sebastien Brisard
2094b5cb5f
In RealVectorTest, removed testClone(), which does not test anything.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358344 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:55:49 +00:00
Sebastien Brisard
e24e3100ed
MATH-795: in RealVectorTest, cleaned-up testSparseIterator().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358343 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:54:29 +00:00
Sebastien Brisard
1ebfcaaffa
MATH-795: default implementation of RealVector RealVectorAbstractTest.createAlien(double[]).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358339 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:32:03 +00:00
Sebastien Brisard
cae661e3ce
MATH-795: SparseRealVectorTest now uses RealVectorAbstractTest.RealVectorTestImpl instead of SparseRealVectorTest.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358338 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:29:11 +00:00
Sebastien Brisard
53fb7e8704
MATH-795: moved minimal implementation of RealVector, ArrayRealVectorTest.RealVectorTestImpl to RealVectorAbstractTest.RealVectorTestImpl.
...
This minimal implementation is now used by RealVectorTest and ArrayRealVectorTest.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358334 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 18:24:50 +00:00
Sebastien Brisard
092c0972ba
MATH-795: in ArrayRealVectorTest, cleaned up the minimal implementation of RealVector, RealVectorTestImpl. This minimal implementation used to be cluttered with unnecessary method implementations, which should have been removed when the interface RealVector was changed into an abstract class.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358319 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 17:59:42 +00:00
Sebastien Brisard
12dfb2e92d
MATH-795: cleanup of RealVectorAbstractTest.
...
Removed unused class variables and imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358049 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 06:23:03 +00:00
Sebastien Brisard
e89009749f
MATH-795:
...
- Corrected some build failures caused by changes in r1358046.
- Moved javadoc of boolean ArrayRealVector.equals(Object) to RealVector.
- In RealVector, default implementations of equals(Object) and hashCode() throw UnsupportedOperationException, in order to force implementation in subclasses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358048 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 05:47:02 +00:00
Sebastien Brisard
8762808a04
MATH-795: removed redundant unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358046 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 05:26:35 +00:00
Sebastien Brisard
ea6d2beeaf
MATH-795:
...
- Added default implementation to RealVector RealVector.projection(RealVector)
- Removed implementation in concrete classes (to avoid code duplication).
- Created unit tests accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358044 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 05:18:39 +00:00
Sebastien Brisard
c7196c8f20
MATH-795: refactored unit tests for double RealVector.cosine(RealVector).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358033 13f79535-47bb-0310-9956-ffa450edef68
2012-07-06 03:48:04 +00:00
Gilles Sadowski
d182f07d6a
MATH-798
...
Added overridden "fit" method where one can specify the maximum number of
function evaluations.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1357353 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 18:00:02 +00:00
Gilles Sadowski
f2187efaf0
MATH-810
...
Added new accessors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1357004 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 23:03:55 +00:00
Sebastien Brisard
075a88a074
MATH-795: in RealVectorAbstractTest, factored out unit tests for
...
double dotProduct(RealVector)
As first reported by Bill Barker, these tests fail with the current default implementation (in RealVector) as well as the sparse implementation (in OpenMapRealVector).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1356576 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 05:51:57 +00:00
Sebastien Brisard
8071ded100
MATH-795: in RealVectorAbstractTest, refactored unit tests of
...
- RealVector RealVector.combine(double, double, RealVector),
- RealVector RealVector.combineToSelf(double, double, RealVector).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1356070 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 05:46:10 +00:00
Sebastien Brisard
5e5cb5ec2f
MATH-795:
...
In org.apache.commons.math3.linear.RealVectorAbstractTest
- factored out unit tests of RealVector RealVector.set(double),
- created unit tests of double[] RealVector.toArray(),
- factored out unit tests of RealVector RealVector.unitVector(),
- factored out unit tests of void RealVector.unitize(),
- created unit tests of Iterator<RealVector.Entry> RealVector.iterator().
In org.apache.commons.math3.linear.ArrayRealVector, removed unnecessary overrides of unitVector() and unitize().
In org.apache.commons.math3.linear.RealVector
- unitVector() and unitize() now throw an ArithmeticException when the norm is 0 (as specified in the Javadoc),
- the returned iterator() returns NoSuchElementException as specified in the general contract of iterators.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1354822 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 06:09:51 +00:00
Sebastien Brisard
590934526e
MATH-795: factored out unit test of
...
RealMatrix RealVector.outerProduct(RealVector)
This test fails with the default implementation provided by the abstract class RealMatrix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1354330 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 05:53:09 +00:00
Sebastien Brisard
fd40f7a4f6
MATH-795: in RealVectorAbstractTest, created an array of specific entry values to be tested. Generalized its use in some unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1354329 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 05:37:55 +00:00
Sebastien Brisard
6b4e87c928
MATH-795: factored out unit tests for RealVector.map(UnivariateFunction) and RealVector.mapToSelf(UnivariateFunction).
...
This test fails with OpenMapRealVector. This is a known issue (sign of zero is lost in this class).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353825 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 06:09:27 +00:00
Sebastien Brisard
83461fe890
MATH-795: factored out unit tests for RealVector.mapAdd(double), RealVector.mapSubtract(double), RealVector.mapDivide(double), RealVector.mapSubtract(double).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353824 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 05:45:13 +00:00
Sebastien Brisard
8ee2bbd33f
In the constructor of IterationManager, removed the check for null argument (already carried out in the constructor of Incrementor).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353586 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 15:00:11 +00:00
Sebastien Brisard
a4e4583de2
Replaced NullPointerException with NullArgumentException.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353451 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 10:44:38 +00:00
Sebastien Brisard
3e8cbfa5c9
MATH-795: factored out test of getL1Norm, getL1Distance, getLInfNorm, getLInfDistance.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353388 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 05:57:14 +00:00
Sebastien Brisard
c1e51be5a8
MATH-795: factored out unit tests of getDistance and getNorm.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353387 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 05:42:09 +00:00
Sebastien Brisard
692c542c5e
Reverted changes committed in r1353140. In o.a.c.m3.util.Incrementor, a NullPointerException is now thrown if the call-back function specified at construction is null. o.a.c.m3.util.IterationManager was updated accordingly (used to explicitely use the constructor with null argument).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353386 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 05:22:58 +00:00
Sebastien Brisard
2881c10609
MATH-807: in o.a.c.m3.util.IterationManager, created a new constructor which allows for the specification of a o.a.c.m3.util.Incrementor.MaxCountExceededCallback, to be called when the maximum number of iterations is reached.
...
Updated the javadoc of iterative linear solvers accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353141 13f79535-47bb-0310-9956-ffa450edef68
2012-06-23 15:12:34 +00:00
Sebastien Brisard
1977d4d968
In o.a.c.m3.Incrementor, modified constructor to allow for null values of the MaxCountExceededCallback. Null value was previously not checked wich could lead to a NullPointerException much later (at exhaustion of the counter).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1353140 13f79535-47bb-0310-9956-ffa450edef68
2012-06-23 15:09:14 +00:00
Sebastien Brisard
b30f3d5556
MATH-803 : deprecated RealVector.ebeMultiply() and RealVector.ebeDivide(), and
...
updated unit tests accordingly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1352782 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 07:06:28 +00:00
Luc Maisonobe
52eb62e4dd
Fixed checkstyle warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1351265 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 10:13:40 +00:00