Commit Graph

4781 Commits

Author SHA1 Message Date
Luc Maisonobe fde06bb6b6 Removed spurious @Override.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560928 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 09:58:43 +00:00
Thomas Neidhart c9b7b57d3c Add missing AL header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560551 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 22:35:21 +00:00
Thomas Neidhart 58693fbcb3 [MATH-970] Add a method isSolutionOptimal to SolutionCallback.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560541 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 22:12:42 +00:00
Thomas Neidhart c58e2abfe5 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560532 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 22:05:37 +00:00
Thomas Neidhart 842351710e [MATH-1038] Refactor code as agreed on the mailinglist.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560531 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 22:00:37 +00:00
Luc Maisonobe 1f8d874895 Updated user guide for geometry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560390 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 15:55:03 +00:00
Luc Maisonobe 1fc112d053 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560336 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 12:39:14 +00:00
Luc Maisonobe e02b8f8a5a typo in a function name ...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560335 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 12:39:06 +00:00
Luc Maisonobe 43ef84b729 BSP tree now provide an API to compute a global signed distance.
The distance is defined from a test point to the region. It is positive
if the point is outside of the region, negative if the point is inside,
and zero when the point is at the boundary. The distance is continuous
everywhere, so it can be used with a root solver to identify accurately
boundary crossings. This API is available for all BSP trees, in
Euclidean and spherical geometries, and in all dimensions.

Fixes MATH-1091

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560115 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 17:49:13 +00:00
Luc Maisonobe 5b71c17c81 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1560114 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 17:48:16 +00:00
Luc Maisonobe 01e1ca4bfd IntervalsSet now implements Iterable<double[]>.
Fixes MATH-1090

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1559746 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 15:34:41 +00:00
Luc Maisonobe b1e3f391b5 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1559745 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 15:34:02 +00:00
Gilles Sadowski 145cc675d3 MATH-1089
Slightly simpler implementation.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1559067 13f79535-47bb-0310-9956-ffa450edef68
2014-01-17 10:53:00 +00:00
Thomas Neidhart e91d0f0510 [MATH-1089] Precision.round(double, ...) will return negative zero for negative values rounded to zero.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558933 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 22:11:00 +00:00
Thomas Neidhart c9181d3b05 [MATH-1088] Add missing changelog entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558922 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 21:39:03 +00:00
Gilles Sadowski 63d88c74b7 MATH-1088
Ensure that bad usage will raise an exception.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558833 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 15:26:29 +00:00
Luc Maisonobe 2c9438da23 Fixed an issue with noisy functions for ODE events detection.
The issue was not detected in Apache Commons Math but in similar code in
Orekit (see https://www.orekit.org/forge/projects/orekit/issues/160).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558462 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 16:48:25 +00:00
Luc Maisonobe 4fc2d43205 Removed development bits.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558150 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 18:27:02 +00:00
Luc Maisonobe 9b3a46e205 Fixed problem for spherical polygons with holes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1558149 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 18:26:32 +00:00
Luc Maisonobe 692142457a Don't advertise an assumption we may remove soon.
We will probably extend the circle class to also represent small circles
on the 2-sphere, not only great circles. This would introduce an
aperture angle that could be different from \pi/2. In this case, the
part of a circle inside another circle may exist or not (small circles
can be disjoint), and may have a length either shorter or longer than
\pi.

This change is not done yet, but could happen any time soon, even before
3.3 is out.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557981 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 08:55:40 +00:00
Luc Maisonobe ac7733fd69 Improved tests coverage.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557716 13f79535-47bb-0310-9956-ffa450edef68
2014-01-13 13:55:53 +00:00
Luc Maisonobe cfee716182 Removed too tight link between edges and BSP tree.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557693 13f79535-47bb-0310-9956-ffa450edef68
2014-01-13 12:42:40 +00:00
Luc Maisonobe 0f13370f35 Fixed an error introduced by a wrong fix...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557609 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 20:41:34 +00:00
Luc Maisonobe bb2dc86de1 Fixed area computation on non-convex spherical polygons.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557543 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 14:56:04 +00:00
Luc Maisonobe 638def643f Fixed missing last iteration in a loop.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557514 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 11:13:05 +00:00
Luc Maisonobe 5f0fcfce89 Removed spurious @Override.
As we are still targeting Java 5, @Override should not be used for mere
interface implementation.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557424 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 17:18:21 +00:00
Gilles Sadowski aad194a346 MATH-923
Implementation of Kohonen's Self-Organizing Feature Map (SOFM).
New package "o.a.c.m.ml.neuralnet" contains base functionality for implementing
different map types, i.e. methods that project a high-dimensional space onto one
with a low dimension (typically 1D or 2D).
The SOFM-specific code is in "o.a.c.m.ml.neuralnet.sofm".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1557267 13f79535-47bb-0310-9956-ffa450edef68
2014-01-10 22:01:27 +00:00
Luc Maisonobe 0a75cbc380 Improved robustness of 1-sphere regions (ArcsSet) at 0/2\pi crossing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1556880 13f79535-47bb-0310-9956-ffa450edef68
2014-01-09 17:08:00 +00:00
Luc Maisonobe f2db15c31f Fixed errors in spherical polygons build from vertices.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555871 13f79535-47bb-0310-9956-ffa450edef68
2014-01-06 15:45:43 +00:00
Luc Maisonobe dfc232415a Deprecating geometry constructors without tolerance setting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555176 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 18:07:59 +00:00
Luc Maisonobe aaa0eafa09 Undeprecated methods.
Deprecating methods that are overridden with different signature was not
really a good idea. We can keep both methods in parallel without
problems.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555175 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 18:07:22 +00:00
Luc Maisonobe 2a67133805 Generalized use of customizable tolerance in BSP trees.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555174 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 18:06:20 +00:00
Luc Maisonobe 3839da6580 Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555173 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 18:05:04 +00:00
Luc Maisonobe bb014c3ebf Fixed SubCircle behaviour in parallel circles case.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555088 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 13:47:35 +00:00
Luc Maisonobe 3491906594 Fixed missing deep copy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1555050 13f79535-47bb-0310-9956-ffa450edef68
2014-01-03 11:22:04 +00:00
Luc Maisonobe 4345758ddc Test for 2-sphere hyperplane, i.e. Circle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554907 13f79535-47bb-0310-9956-ffa450edef68
2014-01-02 20:40:42 +00:00
Luc Maisonobe c8c94b8a1f Removed unneeded method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554906 13f79535-47bb-0310-9956-ffa450edef68
2014-01-02 20:40:09 +00:00
Luc Maisonobe 18a6d9c773 Un-deprecated a widely used method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554905 13f79535-47bb-0310-9956-ffa450edef68
2014-01-02 20:39:38 +00:00
Luc Maisonobe 2b24ae34b7 Improved 1-sphere to provide methods useful for the 2-sphere.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554658 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:33:39 +00:00
Luc Maisonobe 292eefa57c Fixed javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554657 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:31:21 +00:00
Luc Maisonobe 0faf0131f6 Finalized 1-sphere.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554656 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:30:58 +00:00
Luc Maisonobe 169a316003 Improved navigation within sub-arcs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554655 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:30:34 +00:00
Luc Maisonobe d83cdb9133 Simplified 1-sphere case.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554654 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:30:06 +00:00
Luc Maisonobe 57eff0d0c3 Avoid NullPointerException in some corner cases.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554653 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:29:18 +00:00
Luc Maisonobe 83444ebe71 Intermediate, partially working stuff on the 1-sphere.
Chord/SubChord are most probably not the appropriate classes. They are
too complex and should be replaced by something simpler and more
0-dimension, like OrientedPoint in Euclidean 1-D.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554652 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:28:51 +00:00
Luc Maisonobe ed73c356c7 Fixed some Clirr errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554651 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:27:48 +00:00
Luc Maisonobe a3e4cbe0bb Added BSP for spherical geometry.
This is work in progress! It is not tested yet.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554650 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:26:54 +00:00
Luc Maisonobe 37115c5788 Javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554649 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:26:10 +00:00
Luc Maisonobe 13188390f3 Starting work on BSP trees for spheres.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554648 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:24:37 +00:00
Luc Maisonobe 65ada834ee Typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554647 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:23:28 +00:00
Luc Maisonobe 6c4f513542 We don't need the full Vector API for BSP trees.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554646 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 17:22:53 +00:00
Thomas Neidhart 8fac2db60a [MATH-1082] Add missing change entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554545 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:41:30 +00:00
Thomas Neidhart edf56632b8 Rename local variable to avoid masking a member variable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554544 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:40:35 +00:00
Luc Maisonobe 9d4d7150eb Fixed missing licenses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554036 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 15:18:59 +00:00
Luc Maisonobe 76a5cd998b Checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1554035 13f79535-47bb-0310-9956-ffa450edef68
2013-12-29 15:17:45 +00:00
Gilles Sadowski 8e23b250a4 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1553855 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 15:55:24 +00:00
Phil Steitz 1220f2f7ba Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1553598 13f79535-47bb-0310-9956-ffa450edef68
2013-12-26 22:18:02 +00:00
Thomas Neidhart fa027a4685 [MATH-1082] Improve cutOff mechanism in SimplexSolver, adapt unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1552792 13f79535-47bb-0310-9956-ffa450edef68
2013-12-20 19:33:03 +00:00
Thomas Neidhart 881a4ee8db [MATH-1079] Further improvements to SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1552046 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 17:41:26 +00:00
Thomas Neidhart af858a6ca2 [MATH-1079] Improve performance of SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551735 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 22:11:45 +00:00
Thomas Neidhart 68fa81123a Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551360 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 21:13:59 +00:00
Thomas Neidhart b285f17023 [MATH-1080] LinearConstraintSet returns now the LinearConstraints in the same order as they have been added.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551355 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 21:05:01 +00:00
Thomas Neidhart f7222ca6c3 Rename enum to uppercase, make test deterministic.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551058 13f79535-47bb-0310-9956-ffa450edef68
2013-12-15 21:15:21 +00:00
Thomas Neidhart 05aae985d9 Small improvement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1551014 13f79535-47bb-0310-9956-ffa450edef68
2013-12-15 10:56:49 +00:00
Thomas Neidhart 721730b00b Formatting, use List instead of ArrayList.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1550977 13f79535-47bb-0310-9956-ffa450edef68
2013-12-14 22:07:02 +00:00
Thomas Neidhart f3a785108f [MATH-842] Added support for different pivot selection rules to SimplexSolver.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1550975 13f79535-47bb-0310-9956-ffa450edef68
2013-12-14 21:50:33 +00:00
Thomas Neidhart 7ebbaea90e Remove some debug code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549985 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 22:13:14 +00:00
Thomas Neidhart ab0a2f761f Add some documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549984 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 22:10:43 +00:00
Thomas Neidhart e9ea52189a Improve ImageEvolutionExample, add test images.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549977 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 21:40:32 +00:00
Thomas Neidhart 1cdc902f3d Add ImageEvolution example for genetics package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549696 13f79535-47bb-0310-9956-ffa450edef68
2013-12-09 22:34:28 +00:00
Thomas Neidhart 7573e9eec0 Small performance improvement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549094 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:23:44 +00:00
Thomas Neidhart d944333d01 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549093 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:23:09 +00:00
Thomas Neidhart a34be55b9b Add dependency to commons-lang3 for userguide examples.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549092 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:20:58 +00:00
Thomas Neidhart c823ac5673 Add HelloWorld example for genetics package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1549090 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 18:18:13 +00:00
Thomas Neidhart e42da5d9d2 [MATH-1068] Changed integer calculations with potential overflows to long.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1548907 13f79535-47bb-0310-9956-ffa450edef68
2013-12-07 13:08:06 +00:00
Thomas Neidhart 8e5867eda8 [MATH-1070] Fix Precision.round(float, int, int) for RoundingMode ROUND_UP. Thanks to Oleksandr Muliarevych.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1547649 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 23:50:14 +00:00
Thomas Neidhart ba3c2201c6 [MATH-1059] Use FastMath instead of Math.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1547633 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 23:03:06 +00:00
Thomas Neidhart b12610d35e [MATH-1068] Avoid overflow in Kendalls correlation for large input arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1546840 13f79535-47bb-0310-9956-ffa450edef68
2013-12-01 19:17:22 +00:00
Gilles Sadowski aff82362cf MATH-1067
Avoid infinite recursion. Thanks to Florian Erhard.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1546350 13f79535-47bb-0310-9956-ffa450edef68
2013-11-28 11:41:12 +00:00
Gilles Sadowski c1ba07bb65 MATH-1014
"PolynomialCurveFitter" as replacement of "PolynomialFitter". Some tests have
been obsoleted by the refactoring (which hides the optimizer and thus avoids
some potential misuses).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1543906 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 18:57:53 +00:00
Thomas Neidhart 54a7796ff2 [MATH-970] Added SolutionCallback to SimplexSolver to retrieve the best solution found.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1543169 13f79535-47bb-0310-9956-ffa450edef68
2013-11-18 21:24:32 +00:00
Thomas Neidhart 3a45bc5b6d [MATH-1031] Added new ClusterEvaluation base class and refactored code in MultiKMeansPlusPlusClusterer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1542545 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 18:48:48 +00:00
Thomas Neidhart 65646ba8bd Fix typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1542541 13f79535-47bb-0310-9956-ffa450edef68
2013-11-16 17:48:36 +00:00
Phil Steitz 1e1365c7b4 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541354 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 02:04:32 +00:00
Phil Steitz 763b37de5d Dropped some ancient history.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541350 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 01:34:10 +00:00
Phil Steitz 04078798c0 Miscellaneous updates / fixes
* Drop mention of Maven 2 (was distinguishing from Maven 1, which no longer really exists)
* Remind people to make diffs from top level project directory
* Don't tell people to make Wiki pages (not open access any more)
* Drop (now false) statement that all exceptions inherit from MRE



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1541347 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 01:24:17 +00:00
Phil Steitz 5df86e5cb2 Removed reference to deprecated class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540802 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 18:51:38 +00:00
Phil Steitz 7cff45f1d7 Refer to MathIllegalArgumentException; formatting; remove false commitment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540751 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 15:20:28 +00:00
Phil Steitz b3b5e6c869 Fixed some errors; changed to use standard terminology.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540566 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 22:19:10 +00:00
Phil Steitz 1b4f1ef040 Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540561 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 22:04:58 +00:00
Phil Steitz 909105bf55 Fixed spelling errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540531 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 19:59:15 +00:00
Phil Steitz 064634efda Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540514 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:55:52 +00:00
Phil Steitz 0801455213 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540513 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:54:32 +00:00
Phil Steitz 78504bde01 Changed to use InsufficientDataException when the model does not contain sufficient data for the number of regerssors; fixed error in precondition statement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540502 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 18:03:41 +00:00
Phil Steitz fdd505d985 Added InsufficientDataException. JIRA: MATH-1061
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540498 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 17:45:38 +00:00
Phil Steitz 5d61fcddd4 Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540418 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 22:34:10 +00:00
Phil Steitz b72f31c6bd Clarified contracts re NaNs, IAEs and when constructor arguments are necessary.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540395 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 21:32:06 +00:00
Phil Steitz eca87abcee Added test to verify that zero variance in either array leads to NaN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540392 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 20:31:52 +00:00
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 5ee76f095e [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540167 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 20:00:08 +00:00
Thomas Neidhart f2a833757b [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540166 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:56:28 +00:00
Thomas Neidhart e4c6bb0b27 [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540165 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:53:58 +00:00
Thomas Neidhart cf1a5c59dd [MATH-1059] Replace Math with FastMath.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540155 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 19:08:22 +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 8d78c7a598 Add figures for userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539780 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 19:42:02 +00:00
Thomas Neidhart f8ec5cbba9 Increate font size.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539779 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 19:41:29 +00:00
Thomas Neidhart 6b18e3897a Further improvements.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539775 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 19:36:38 +00:00
Thomas Neidhart 346a41fc6b Add cannonball kalman filter example for user guide
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539723 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 17:16:04 +00:00
Thomas Neidhart 73558cace6 Fix checkstyle warning wrt unneeded parenthesis.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539704 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 16:34:51 +00:00
Thomas Neidhart bbd922d727 Added constant voltage example for kalman filter.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539703 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 16:34:17 +00:00
Thomas Neidhart 12afe72d20 Fix legend.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1539678 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 15:18:53 +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 67fc63b994 Add missing AL header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538968 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 12:30:32 +00:00
Gilles Sadowski 6527a801c1 MATH-1054
Standardize "x = x op y" to "x op= y". Thanks to Sean Owen.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538368 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 13:57:37 +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 ac8a587829 Remove override for interface.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538348 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 12:27:12 +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 4d93242518 Update of distribution overview.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538293 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 22:01:24 +00:00
Thomas Neidhart 652084aa55 Add overview of available continuous distributions to the userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538289 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 21:42:57 +00:00
Thomas Neidhart 8a073f12e5 Remove inaccessible link in userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538288 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 21:39:15 +00:00
Thomas Neidhart 5ecdf2312d Add separate example project for some code used to generate figures for the userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538287 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 21:36:55 +00:00
Thomas Neidhart 6191949f89 Fix font size.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538283 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 21:03:57 +00:00
Thomas Neidhart 40a97ba13a Add recently added features to the userguide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538282 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 21:02:13 +00:00
Thomas Neidhart 280af43635 Reduce font-size as it looks odd when rendered.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538268 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 20:46:04 +00:00
Thomas Neidhart f2e10b7e6f Fix font-size and width.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1538260 13f79535-47bb-0310-9956-ffa450edef68
2013-11-02 20:30:44 +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 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
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
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 1146cf6a60 Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1531415 13f79535-47bb-0310-9956-ffa450edef68
2013-10-11 20:53:36 +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 7cc91e9f22 [MATH-842] revert incomplete change and postpone.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1524213 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 20:32:50 +00:00
Thomas Neidhart a6925e3e8a [MATH-842] Fix Blands rule by applying it also to pivot column selection, add getter/setter for cycle prevention, reduce default cut-off threshold to 1e-10.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1523495 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 19:42:24 +00:00
Phil Steitz fb6f2aec92 Removed vestigal code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1522637 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 15:56:02 +00:00
Thomas Neidhart a01407b7c1 Remove trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1522089 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 22:53:56 +00:00
Thomas Neidhart 0442cddf57 Use generic parameter.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1522088 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 22:53:22 +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 4c7b801625 Formatting and javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1522083 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 22:42:15 +00:00
Gilles Sadowski 9a50472883 Javadoc: using MathJax.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1521951 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 17:50:28 +00:00
Luc Maisonobe ec4b45c342 Removed spurious @Override.
As the method simply implements an interface and as we are still
targeting Java 1.5, the @Override annotation should not be there.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1521774 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 09:57:29 +00:00
Gilles Sadowski f2b1cf5e5d MATH-1014
Created "HarmonicCurveFitter" as a replacement for "HarmonicFitter".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520807 13f79535-47bb-0310-9956-ffa450edef68
2013-09-07 20:37:49 +00:00
Gilles Sadowski 6429fc8d89 Swapped arguments (expected vs tested).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520623 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 16:16:43 +00:00
Gilles Sadowski 034ed33e47 Reuse method from "MathArrays".
Merged "if" cases.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520622 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 16:15:34 +00:00
Gilles Sadowski 451e121231 Use method moved to "MathArrays".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520620 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 16:07:03 +00:00
Gilles Sadowski db77aa6030 Created "natural" method in "MathArrays" from code previously in
class "RandomDataGenerator" (private method).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520619 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 16:05:51 +00:00
Gilles Sadowski 1f72a13a37 MATH-1027
Changed visibility of "IterationOrder" to "private".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520611 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 15:46:19 +00:00
Gilles Sadowski d3b4651afb MATH-1027
Added accessors and (lexicographic) comparator.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520605 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 15:32:37 +00:00
Phil Steitz 928a556123 Clarified javadoc for setXxxImpl methods. JIRA: MATH-1023.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1520076 13f79535-47bb-0310-9956-ffa450edef68
2013-09-04 17:24:02 +00:00
Gilles Sadowski 77ba0961e5 MATH-1027
Transferred code from "CombinatoricsUtils" to new class "Combinations".
Made "checkBinomial" public in "CombinatoricsUtils". 


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519924 13f79535-47bb-0310-9956-ffa450edef68
2013-09-04 07:28:48 +00:00
Thomas Neidhart b3f4a55be9 Added missing since tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519851 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 21:16:35 +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 83b5df5178 [MATH-1001] Added additional clarification to javadoc wrt byte and short parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519820 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 19:58:03 +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 9027cff326 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519209 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 20:00:54 +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 e7211873ee Fix Id tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1519184 13f79535-47bb-0310-9956-ffa450edef68
2013-08-31 15:22:59 +00:00
Gilles Sadowski 8d57e61426 "final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1518829 13f79535-47bb-0310-9956-ffa450edef68
2013-08-29 21:22:59 +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
Luc Maisonobe db0ad53076 Added a convenience createConstant method for DerivativeStructure.
Thanks to Ajo Fod.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517789 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 11:15:50 +00:00
Luc Maisonobe ee9383b770 Improved handling of negative arguments for power function.
Thanks to Ajo Fod.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517788 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 11:15:18 +00:00
Gilles Sadowski 5b60da6526 Increase code locality.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517542 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 14:24:18 +00:00
David Brosius 9c82c679f8 presize collections
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517418 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 03:18:55 +00:00
David Brosius 40ef9f876c simplify string to primitive conversion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517416 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 03:04:38 +00:00
David Brosius 15d9a40e8e remove dead store to 'resultb'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517404 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 01:05:11 +00:00
Luc Maisonobe 8d609db47f Added method to compute a^x for double a and DerivativeStructure x.
This takes care of special cases like a=0, but encounters the same
limitation as rootN near the singularity 0^0. Combined derivatives like
order 2 or higher with respect to canonical variables give NaN and not
+/-infinity. First derivative with respect to a single variable works
well and provided the correct infinity.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517379 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 20:15:29 +00:00
Luc Maisonobe cf4805081b Fixed checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517359 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 18:19:06 +00:00
Gilles Sadowski 5151780b34 Extending the validity range of the check.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1517338 13f79535-47bb-0310-9956-ffa450edef68
2013-08-25 17:06:55 +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 b06d9bcfa1 MATH-1014
Deprecation markers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516923 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 16:16:00 +00:00
Gilles Sadowski 354d5520c9 MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516902 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:45:49 +00:00
Gilles Sadowski eb1a3f00a2 MATH-1014
"GaussianCurveFitter" as replacement of "GaussianCurveFitter".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516896 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:39:55 +00:00
Gilles Sadowski 95ce549b40 MATH-1014
Deprecation markers.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516895 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:37:29 +00:00
Gilles Sadowski 053b8dda2d MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516875 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:01:33 +00:00
Gilles Sadowski 39479c8a77 MATH-1014
Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516865 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:37:41 +00:00
Gilles Sadowski 667feb7b73 MATH-1014
New class "AbstractCurveFitter" as replacement for "CurveFitter".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516854 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:12:06 +00:00
Gilles Sadowski 0155238a3c MATH-1014
Container for storing observations, to allow separating the curve fitting
algorithms from the data to be fitted.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1516059 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 02:03:30 +00:00
Gilles Sadowski 529415fffe MATH-1008
Deprecated least-squares optimizers in package "o.a.c.m.optim.nonlinear.vector".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515242 13f79535-47bb-0310-9956-ffa450edef68
2013-08-18 23:27:29 +00:00
Gilles Sadowski 4f124df979 MATH-1008
Added "shallowCopy" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1515238 13f79535-47bb-0310-9956-ffa450edef68
2013-08-18 22:55:31 +00:00
Gilles Sadowski b0a0c5bd6d Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513660 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 21:38:23 +00:00
Gilles Sadowski 0cc43e36b8 MATH-1019
Removed dead link in Javadoc; added entry to original reference
in "LICENCE" file.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513501 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 14:20:26 +00:00
Gilles Sadowski 40bde15b03 MATH-1022
Fixed Javadoc.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1513430 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 10:46:48 +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 e175e32e8b MATH-1010
Deleted obsolete method (replaced by "MathArrays.shuffle").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512824 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 21:42:39 +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
Gilles Sadowski 21f882885b MATH-1010
Make use of the RNG supplied as argument.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512535 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 23:39:24 +00:00
Gilles Sadowski 63030b2b0a MATH-1008
Simplification of the code introduced in revision 1508481. The changes
only focus on the "fluent API" aspect (rather than also try to achieve
thread-safety through immutability).
Class "AbstractOptimizer" introduced to serve as the base class for all
optimizers (i.e. replace the current "BaseOptimizer").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512530 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 23:21:14 +00:00
Gilles Sadowski 6d0394d27d MATH-1020.
Fixed "nextPermutation" in "RandomDataGenerator". Bug showed up when using
a fixed version of "shuffle" (MATH-1019) added in "MathArrays" (MATH-1010).
Added overloaded "shuffle" method (used in the above fix).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512306 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 13:55:49 +00:00
Gilles Sadowski c8fc11146f MATH-1010
Added utility to shuffle an array (based on the method "shuffle" located
in "o.a.c.m.random.RandomDataGenerator"). See also MATH-1019.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512095 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 23:18:59 +00:00
Thomas Neidhart f18f6dd91b Update release version for new features.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512043 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 21:27:57 +00:00
Gilles Sadowski 80c884bb67 Unused import.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1510924 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 12:22:47 +00:00
Gilles Sadowski fc1d4f9e91 MATH-1012
Removed duplicate code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509237 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:57:57 +00:00
Gilles Sadowski a846ced6e3 Removed duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509236 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:55:22 +00:00
Gilles Sadowski c97a18ad13 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509235 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:49:52 +00:00
Gilles Sadowski f228eb6233 Cleared "FindBugs" warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509234 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:48:57 +00:00
Gilles Sadowski 5eb18d2ef6 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509230 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:34:46 +00:00
Gilles Sadowski bafa4f8bf8 MATH-1012
Factory class.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1509222 13f79535-47bb-0310-9956-ffa450edef68
2013-08-01 13:12:06 +00:00
Gilles Sadowski 52e4f99b32 MATH-1011
Delegate method "nextInt" in "RandomDataGenerator" to method "sample" in
"UniformIntegerDistribution".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508860 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 14:00:50 +00:00
Gilles Sadowski 0c2f30f9f2 MATH-1011
Replaced implementation (with a more robust one, copied from
"o.a.c.m.random.RandomDataGenerator").


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508829 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 12:17:20 +00:00
Gilles Sadowski acd569595e MATH-1008
Created package "o.a.c.m.fitting.leastsquares" to contain a modified version
of the contents of (to-be-deprecated) "o.a.c.m.optim.nonlinear.vector", the
main purpose being to provide a new "fluent" API (cf. "withXxx" methods).  
Along the way, class "LevenbergMarquardtOptimizer" has been further cleaned    
up (e.g. removing protected fields and deprecated methods and using local
variables instead of instance fields).
An additional constructor was necessary in "BaseOptimizer".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1508481 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 15:04:22 +00:00
Luc Maisonobe 0215c2c5f5 Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505938 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:50:10 +00:00
Luc Maisonobe e79f61951b Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505934 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:38:03 +00:00
Luc Maisonobe 24f20dc6e3 Fixed checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1505931 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 08:37:39 +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 aa9293caed Explicit boxing and unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504729 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:54:52 +00:00
Sebastian Bazley dafa441cca Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504726 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:44:13 +00:00
Sebastian Bazley 5e7b146f9e Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504724 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:41:20 +00:00
Sebastian Bazley 7d57ff6d78 Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504723 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:41:02 +00:00
Sebastian Bazley 95175f882a Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504722 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:39:36 +00:00
Sebastian Bazley 90c00ba7c1 Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504710 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:51:17 +00:00
Sebastian Bazley 0ee29fab9c Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504709 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:50:03 +00:00
Sebastian Bazley 64eeea32da Boxing OK here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504707 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:46:04 +00:00
Sebastian Bazley 4c8d5034c1 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504702 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:41:19 +00:00
Sebastian Bazley eeb03015d0 Needs SVNUID; unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504701 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:40:03 +00:00
Sebastian Bazley 8262007246 Unnecessary SVNUID (class not serializable)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504699 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:32:36 +00:00
Gilles Sadowski 890687bc0b "final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504688 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:22:15 +00:00
Sebastian Bazley 93f8389221 Simplify: no need to unbox the Integers just to compare values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504687 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 22:16:33 +00:00
Phil Steitz bedea0067e Added test to confirm null contract. JIRA: MATH-1007.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504656 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 20:55:46 +00:00
Sebastian Bazley c6cba39616 Forgot @since markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504496 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 15:03:25 +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
Sebastian Bazley d4aa5c6037 Simplify and eliminate boxing warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504482 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 14:06:23 +00:00
Sebastian Bazley 4c9ce8b719 Spare semi
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504480 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 14:04:45 +00:00
Sebastian Bazley a3e44a59fa Simplify and eliminate boxing warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504479 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 14:04:11 +00:00
Sebastian Bazley 10eff3eafb Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504473 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 13:56:10 +00:00
Sebastian Bazley c08f471063 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504468 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 13:47:15 +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
Luc Maisonobe ce96ee600f Removed trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503713 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 13:38:02 +00:00
Luc Maisonobe fd871b977a typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503712 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 13:35:19 +00:00
Sebastian Bazley 4cbb775abb Javadoc clarifications
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503631 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 09:35:54 +00:00
Sebastian Bazley 43e4049d59 Test non-Comparable parameters for Pct and CumPct
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503629 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 09:34:38 +00:00
Sebastian Bazley 91c5101c33 Add some tests of NaNs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503623 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 09:15:32 +00:00
Sebastian Bazley 82a9e0d06f Drop the alternate commented approach
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503308 13f79535-47bb-0310-9956-ffa450edef68
2013-07-15 15:47:21 +00:00
Sebastian Bazley 4f2f94cd04 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503290 13f79535-47bb-0310-9956-ffa450edef68
2013-07-15 15:16:29 +00:00
Sebastian Bazley 7bbb2559f5 Make boxing explicit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1503287 13f79535-47bb-0310-9956-ffa450edef68
2013-07-15 15:07:43 +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
Luc Maisonobe 7cdc540aa6 Fixed moved URL of the reference paper about automatic differentiation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500685 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 12:14:37 +00:00
Luc Maisonobe b3d0fede49 Missing javadoc @param.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500603 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 08:31:49 +00:00
Luc Maisonobe 04240b9a91 Unneeded imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500601 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 08:20:26 +00:00
Sebastian Bazley 630a53d5e4 Turn fixed values into constants
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500500 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 18:06:40 +00:00
Sebastian Bazley 2e56105867 Turn fixed values into constants
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500489 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 17:20:08 +00:00
Sebastian Bazley 3e2570e117 Oops - accidentally committed test for new method that's not yet added
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500487 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 17:14:46 +00:00
Gilles Sadowski c0c42c39fc Annotation "@Override" cannot be used here (Java 5).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1500402 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 10:30:15 +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 16dbaf9707 Accidental over-eager commit, commented out in r1500487
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499841 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 18:54:42 +00:00
Sebastian Bazley 237fe2a651 Avoid Findbugs dead store warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499838 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 18:25:51 +00:00
Sebastian Bazley 28f6b3fc15 Spell it out - easier to read
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499815 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 17:28:45 +00:00