Commit Graph

213 Commits

Author SHA1 Message Date
Phil Steitz d252a811a2 Fixed unintended integer division error in PoissonDistribution sampling method.
JIRA: MATH-1056
Reported and patched by Sean Owen.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540217 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 23:27:49 +00:00
Thomas Neidhart c5b943fe26 Fix failing unit tests for BOBYQAOptimizer when executed with a 1.5 jvm due to slight differences in accuracy of the certain Math functions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540075 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 15:19:46 +00:00
Thomas Neidhart 0aa89cc22e [MATH-1062] Use MatrixUtils.inverse to invert a matrix in the KalmanFilter, added new unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539676 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 15:15:18 +00:00
Gilles Sadowski 4ebd967c96 MATH-1058
Precision improvements by using "expm1" and "log1p". Thanks to Sean Owen.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538998 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 13:51:24 +00:00
Thomas Neidhart 534dd69069 [MATH-1055] Fixed some invalid links inside javadoc and added missing deprecated annotations, thanks to Sean Owen.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538354 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 12:48:40 +00:00
Thomas Neidhart d755a83c9c [MATH-982] Added an overview of available continuous distributions to the userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538294 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 22:05:18 +00:00
Thomas Neidhart 97900db83f Update changelog text for some updates.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1537722 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 21:59:55 +00:00
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 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 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 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
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
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 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
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 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
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
Thomas Neidhart c2801940ef [MATH-1033] Fix input parameter check in KalmanFilter. Thanks to Yuan Qu.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1531430 13f79535-47bb-0310-9956-ffa450edef68
2013-10-11 21:39:09 +00:00
Thomas Neidhart dcaca39d00 [MATH-1037] Fix GeometricDistributionTest. Thanks to Aleksei Dievskii for the report.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1531413 13f79535-47bb-0310-9956-ffa450edef68
2013-10-11 20:47:20 +00:00
Phil Steitz 22cad3d1a9 Added exact binomial test implementation.
Contributed by Thorsten Schaefer
JIRA: MATH-1034


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1527777 13f79535-47bb-0310-9956-ffa450edef68
2013-09-30 20:54:28 +00:00
Thomas Neidhart a0636a7400 Improve changelog entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1522086 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 22:49:10 +00:00
Thomas Neidhart c4b4a75259 [MATH-1018] Added overloaded constructors which do not require an explicit inverseCumulativeAccuracy parameter, the default one will be used instead.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519842 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 20:38:59 +00:00
Thomas Neidhart 217cabc0d1 [MATH-1001] Added overloaded methods for Frequency#incrementValue, thanks to sebb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519813 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 19:51:26 +00:00
Thomas Neidhart c12b7e04bc [MATH-1030] Added a section to the userguide for the ml/clustering package, thanks to Thorsten Schaefer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519307 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 19:42:05 +00:00
Thomas Neidhart 86545dab3e [MATH-996] Fix creation of Fraction/BigFraction objects in maxDenominator mode when the value is close to an actual fraction.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519204 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 19:43:02 +00:00
Thomas Neidhart 8ffd2e9e46 Fix change message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519186 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:41:43 +00:00
Thomas Neidhart 46c14e7411 [MATH-1028] Added new distance metric EarthMoversDistance, thanks to Thorsten Schaefer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519185 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:32:49 +00:00
Thomas Neidhart 629663a08f [MATH-999] Improve performance of DiagonalMatrix.preMultiple(RealVector), thanks to Ajo Fod.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1518820 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 20:57:09 +00:00
Phil Steitz ad35857d0f Added CombinatoricsUtils to the util package, moving binomial
coefficients, factorials and Stirling numbers there and adding
a combinations iterator.
JIRA: MATH-1025

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517203 13f79535-47bb-0310-9956-ffa450edef68
2013-08-24 21:55:35 +00:00
Gilles Sadowski 4d5660ed47 MATH-991
Update "changes.xml".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512825 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 21:47:57 +00:00
Gilles Sadowski 11b1474cec MATH-989
Update "changes.xml".
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512547 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 01:13:38 +00:00
Gilles Sadowski f1467e45ab MATH-1021
Reordering can prevent some overflow occurrences (fix suggested by
Brian Bloniarz).
Added unit test.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512546 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 00:57:48 +00:00
Gilles Sadowski 6d66a863b5 Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512541 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 00:29:31 +00:00
Phil Steitz a626e4ce7e Enabled MathJax in site docs. JIRA: MATH-1006.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504975 13f79535-47bb-0310-9956-ffa450edef68
2013-07-19 19:36:30 +00:00
Sebastian Bazley a6d222c066 MATH-1007 Add mode function to StatUtils class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504495 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 14:59:48 +00:00
Phil Steitz a934dbbb88 Enabled LaTeX expressions in javadoc via MathJax. JIRA: MATH-1006.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504314 13f79535-47bb-0310-9956-ffa450edef68
2013-07-17 22:42:07 +00:00
Sebastian Bazley e3bb2063e7 MATH-1000 Add mode function to Frequency class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503286 13f79535-47bb-0310-9956-ffa450edef68
2013-07-15 15:05:41 +00:00
Gilles Sadowski 91d280b730 MATH-1005
Array of length 1 must be handled as a special case.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1502516 13f79535-47bb-0310-9956-ffa450edef68
2013-07-12 11:29:12 +00:00
Gilles Sadowski 7fb87df294 MATH-997
Gauss-Hermite quadrature scheme.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500018 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 14:20:19 +00:00
Sebastian Bazley 99db22a8df Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499813 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 17:24:47 +00:00
Gilles Sadowski 74e699d076 MATH-993
Moved convergence check block to allow returning before an exception
would be raised.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1497713 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 10:20:21 +00:00
Luc Maisonobe 9e62190606 Added midpoint integration method.
Patch contributed by Oleksandr Kornieiev.

JIRA: MATH-967

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1488914 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 09:04:40 +00:00
Luc Maisonobe d270055e87 Fixed NullPointerException in 2D and 3D sub-line intersections.
Patch contributed by Andeas Huber.

JIRA: MATH-988

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1488866 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 07:15:00 +00:00
Phil Steitz 0ee817712b Added append method to SimpleRegression, making this class map/reducible.
JIRA: MATH-987
Contributed by Ajo Fod

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1488849 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 05:37:13 +00:00
Phil Steitz 33809e031d Added append method to StorelessCovariance, making this class map/reducible.
JIRA: MATH-978
Contributed by Ajo Fod

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1488337 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 17:47:53 +00:00
Thomas Neidhart 4fd920c291 [MATH-851] Added method MathArrays.convolve, thanks to Clemens Novak for the patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1486982 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 16:04:32 +00:00