Thomas Neidhart
2b45b294b5
[MATH-1002] Renamed methods to verifyValues, also copied unit tests to MathArraysTest.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537714 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 21:54:21 +00:00
Thomas Neidhart
c1f3a7bd3b
Add missing svn:keywords.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537688 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 21:36:03 +00:00
Thomas Neidhart
9c23ce3fd1
[MATH-814] Added Kendalls correlation to R testcases.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537664 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 21:17:09 +00:00
Thomas Neidhart
3631295c43
[MATH-814] Added Kendalls tau correlation, Thanks to Matt Adereth.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537660 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 21:16:08 +00:00
Thomas Neidhart
fdbdb5eba8
[MATH-1045] Removed spurious code fragment with an impossible code path.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537616 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 20:07:38 +00:00
Thomas Neidhart
bda25b4029
[MATH-1051] Fix EigenDecomposition for certain non-symmetric matrices.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537611 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 20:06:15 +00:00
Gilles Sadowski
5bbbe7709f
Update "changes.xml".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537473 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 12:56:51 +00:00
Gilles Sadowski
93b51cc6fd
MATH-1047
...
Added overflow checking to "ArithmeticUtils.pow(long,int)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 21:59:57 +00:00
Gilles Sadowski
9be92c371c
MATH-1050
...
Deprecating "pow(int,long)" and "pow(long,long)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537279 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 20:23:06 +00:00
Gilles Sadowski
c979a6f0fe
MATH-1045
...
Loop added to ensure that the largest norm is used in the singularity
check. Patch provided by Sean Owen.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537099 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 14:16:11 +00:00
Gilles Sadowski
5526877f31
"Precision.compareTo" returns an "int".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537053 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 11:46:00 +00:00
Gilles Sadowski
a4ffd39333
MATH-1045
...
Singular matrices were considered non-singular due to strict comparison
with zero. Reported and fixed by Sean Owen.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536766 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 15:43:04 +00:00
Gilles Sadowski
53f55d2ca0
MATH-1047
...
Overflow checking in "ArithmeticUtils.pow(int,int)".
Added "LocalizedFormats.BASE" error pattern.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536683 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 12:01:12 +00:00
Luc Maisonobe
27bbf640fe
Fixed userguide typos.
...
Thanks to Matt Adereth for the patch.
JIRA: MATH-1048
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536265 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 07:10:12 +00:00
Luc Maisonobe
a6be244e7f
Fixed wrong naming and typo.
...
Thanks to Gilles for spotting this!
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536147 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 14:39:16 +00:00
Luc Maisonobe
4b6b25d558
Removed Java6 @Override annotations.
...
@Override is needed in Java6 when implementing an interface, but is
allowed only when overriding a previous implementation in Java5. Apache
Commons Math currently targets Java5, so these annotations were
spurious.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536082 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 10:10:16 +00:00
Luc Maisonobe
c528afa780
Added SparseGradient to deal efficiently with numerous variables.
...
This new class is devoted to differentiation computation when the number
of variables is very large but most computations depend only on a few of
subset of the variables.
Thanks to Ajo Fod for the contribution.
JIRA: MATH-1036
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536073 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 09:52:44 +00:00
Luc Maisonobe
a0ef8539d3
Typos.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1536072 13f79535-47bb-0310-9956-ffa450edef68
2013-10-27 09:52:09 +00:00
Gilles Sadowski
18308998a0
MATH-1045
...
Added unit test (tiny eigenvalues).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1535725 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 13:11:50 +00:00
Luc Maisonobe
cffd29da6b
Removed tab.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1535290 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:58:32 +00:00
Gilles Sadowski
721444f232
MATH-1045
...
Unit test with matrix containing only very small values.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534709 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 17:49:51 +00:00
Sebastian Bazley
e5f5a2dbaa
Missing @Override
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534463 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 01:53:43 +00:00
Thomas Neidhart
082baefb06
Add reference test values for ZipfDistribution.logProbability.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534389 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 21:36:37 +00:00
Thomas Neidhart
f90de3fe0b
Add reference test values for GeometricDistribution.logProbability.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534378 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 21:17:06 +00:00
Thomas Neidhart
7433bbfd76
Add R test script for geometric distribution
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534375 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 21:12:46 +00:00
Thomas Neidhart
0d3f14e99f
Update reference test values for HypergeometricDistribution#logDensity test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534369 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 21:00:03 +00:00
Thomas Neidhart
456723dd14
Replace impl of NormalDistribution.density by calling FastMath.exp(logDensity()) which should be faster.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534363 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 20:28:05 +00:00
Thomas Neidhart
243e7260b9
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534362 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 20:23:54 +00:00
Thomas Neidhart
96d6a416d6
Avoid code duplication in Distribution density/probability methods by using the result of logDensity or logProbability respectively.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534358 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 20:13:52 +00:00
Sebastian Bazley
2745587342
ASF Branding
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1534244 13f79535-47bb-0310-9956-ffa450edef68
2013-10-21 15:51:02 +00:00
Thomas Neidhart
fb3a167582
[MATH-1039] Avoid code duplication by calling logDensity itself.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533990 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 21:24:45 +00:00
Phil Steitz
422fc2a426
Added logDensity methods to AbstractReal/IntegerDistribution with naive default implementations and improved implementations for some current distributions.
...
JIRA: MATH-1039
Patch provided by Aleksei Dievskii
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533974 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 20:42:41 +00:00
Phil Steitz
97bd8fe5de
Fixed typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533961 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 20:22:58 +00:00
Phil Steitz
f63b7466e4
Removed file inadvertently committed in r1533853
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533922 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 15:58:15 +00:00
Phil Steitz
81961ba841
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533853 13f79535-47bb-0310-9956-ffa450edef68
2013-10-20 05:49:10 +00:00
Gilles Sadowski
a8edec70d7
Using most specific exception types.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533841 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 23:05:11 +00:00
Phil Steitz
c4f77587f5
Update message count. Should have been in r1533824 commit.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533826 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 20:38:42 +00:00
Phil Steitz
52e85a5f6f
Added ConfidenceInterval class and BinomialConfidenceInterval providing implementations of several estimates of confidence intervals for binomial probabilities.
...
JIRA: MATH-1038
Patch provided by Thorsten Schaefer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533824 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 20:37:13 +00:00
Phil Steitz
1b9489d057
Fixed javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533795 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 17:27:34 +00:00
Thomas Neidhart
56763bf0cd
Add javadoc for generic parameter types.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533646 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:58:39 +00:00
Thomas Neidhart
93c587d5e4
[MATH-1035] Simplified and improved performance of ArithmeticUtils.addAndCheck(long, long), thanks to derphead
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533643 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:40:42 +00:00
Thomas Neidhart
1f87cb4afb
Remove unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533642 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:33:49 +00:00
Thomas Neidhart
3689e48ab8
[MATH-1004] Added new methods to compute the inverse of a matrix to DiagonalMatrix and MatrixUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533638 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:19:18 +00:00
Thomas Neidhart
6683216e61
[MATH-1029] Make overflow check symmetric for positive/negative values.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533260 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 21:12:28 +00:00
Gilles Sadowski
d1c7e82e93
MATH-1041
...
Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1533042 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 10:59:51 +00:00
Gilles Sadowski
b1a198c84a
MATH-1041
...
Factory method. Thanks to Sean Owen.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1532687 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 08:37:08 +00:00
Gilles Sadowski
da0bbbb9a6
MATH-1041
...
Added "toString" method. Thanks to Sean Owen.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1532679 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 08:08:07 +00:00
Phil Steitz
e65901dcb8
Improved javadoc; changed confidence level to significance level. JIRA: MATH-1034.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1532638 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 04:29:31 +00:00
Sebastian Bazley
9b1f983f71
MATH-1002 AbstractUnivariateStatistic.test(double[] values, int begin, int length, boolean allowEmpty) has uses outside subclasses
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1532459 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 17:57:08 +00:00
Phil Steitz
ea5da00f1a
Improved precision in reference data; decreased default tolerance in IntegerDistributionAbstract test. JIRA: MATH-1037.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1531756 13f79535-47bb-0310-9956-ffa450edef68
2013-10-13 21:33:13 +00:00