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