438 Commits

Author SHA1 Message Date
Sebastien Brisard
87d61c2a51 In changes.xml: Beta has not been changed yet.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414529 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 05:33:36 +00:00
Gilles Sadowski
2786244d09 Contents for the release notes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414470 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 23:43:06 +00:00
Gilles Sadowski
bc69c0088d MATH-910
Element-by-element basic operations on arrays.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1414435 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:19:36 +00:00
Gilles Sadowski
6844aba987 MATH-904.
Fixed wrong assumption in "pow" method.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413916 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 23:02:29 +00:00
Gilles Sadowski
f348a29e5f MATH-902
Update "changes.xml".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413695 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 16:01:55 +00:00
Gilles Sadowski
dfc6a5c215 MATH-905
Update "changes.xml".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413604 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 13:29:18 +00:00
Sebastien Brisard
87a2928ff5 MATH-849: updated changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1413245 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 19:12:14 +00:00
Gilles Sadowski
ccf9403db5 MATH-902
"changes.xml" updated.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1412586 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 15:25:56 +00:00
Thomas Neidhart
0073facaf9 [MATH-906] Use NaNStrategy.FAILED as default in NaturalRanking.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1411880 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 21:13:54 +00:00
Gilles Sadowski
cca05f0c71 MATH-899
Added wrapper class that allows thread-safe usage of any "RandomGenerator".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1410990 13f79535-47bb-0310-9956-ffa450edef68
2012-11-18 21:00:34 +00:00
Thomas Neidhart
16acabd53f [MATH-893] Add new NaNStrategy FAILED, thanks to Patrick Meyer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407852 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 17:14:51 +00:00
Thomas Neidhart
ff96ac9292 [MATH-892] Add new ctor to SpearmansCorrelation, reordering of ctors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1407847 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:51:49 +00:00
Luc Maisonobe
c61b08e546 Fixed naming inconsistencies between Interval and IntervalsSet classes.
JIRA: MATH-890

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405711 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:43:38 +00:00
Luc Maisonobe
2a41e40c15 Added a method to check points in the Interval class.
JIRA: MATH-889

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405706 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 08:00:19 +00:00
Phil Steitz
0987ae5a20 Added G-test statistics. JIRA: MATH-878. Thanks to Radoslav Tsvetkov and Ted Dunning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1405620 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 19:32:35 +00:00
Gilles Sadowski
06c63da6c7 MATH-883
Added "getSquareRoot()" method. Implementation only supports symmetric,
diagonalizable matrices.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403590 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:29:06 +00:00
Gilles Sadowski
4d12f0ca68 MATH-884
Added methods "isSymmetric" and "checkSymmetric".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403587 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 00:21:20 +00:00
Phil Steitz
e0f7ce9c7c Moved array argument validation methods from ChiSquareTest to MathArrays. JIRA: MATH-885.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1403169 13f79535-47bb-0310-9956-ffa450edef68
2012-10-29 04:06:14 +00:00
Gilles Sadowski
8964c7aa09 Updated "changes" file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401906 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 22:38:25 +00:00
Thomas Neidhart
3bae991455 Added missing closing action tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401451 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 20:35:04 +00:00
Thomas Neidhart
c2e855d6a0 [MATH-759] add resolution to changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1401000 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 18:47:33 +00:00
Luc Maisonobe
b25f448d2f Improved polygons creation with a numerically more robust constructor.
This is only a partial fix for issue 880 because there are still some
glitches in the first polygon involved in the issue.

JIRA: MATH-880

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400717 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 20:08:32 +00:00
Thomas Neidhart
231b9a8905 Fix special characters in changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400685 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:43:08 +00:00
Thomas Neidhart
1d02ff125d [MATH-474] Added Frequency#merge method, thanks to patch from Dan Checkoway.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400683 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 17:33:37 +00:00
Thomas Neidhart
5b9302d5be [MATH-778] Allow unlimited input values for Dfp#multiply.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1400671 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 16:22:50 +00:00
Gilles Sadowski
bb60e51654 Indentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392028 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 14:17:12 +00:00
Luc Maisonobe
df92c3b6f1 Added distance to point to 2D Line and Segment.
Patch provided by Curtis Jensen applied with minor modifications.

JIRA: MATH-641

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1392022 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 13:22:28 +00:00
Gilles Sadowski
3246e42006 Update "changes.xml".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391928 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:14:32 +00:00
Gilles Sadowski
1ac0c79080 CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391927 13f79535-47bb-0310-9956-ffa450edef68
2012-09-30 00:03:30 +00:00
Luc Maisonobe
6129654bc2 Fixed some issues in nth root derivatives at 0.
The current behavior is correct with respect to infinities and NaN being
appropriately generated, but in some cases counter-intuitive.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1391451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 13:28:42 +00:00
Thomas Neidhart
ad252a8ca3 [MATH-848] Fixed Schur transformation for certain input matrices, changed index parameter names to indicate their purpose.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1389129 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 19:34:02 +00:00
Gilles Sadowski
f33f1fb501 MATH-860
Matrix "block inversion".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388555 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:41:06 +00:00
Gilles Sadowski
5144e1d878 MATH-865
Update "changes" file.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 15:34:03 +00:00
Gilles Sadowski
abe53a537b MATH-864
Fixed missing "repair" of a point that lies outside the boundaries. Thanks
to Frank Hessen for the report and for pinpointing the cause of the problem.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388517 13f79535-47bb-0310-9956-ffa450edef68
2012-09-21 14:17:37 +00:00
Gilles Sadowski
7a74137904 MATH-863
New "Quaternion" class. Thanks to Julien Anxionnat.
After applying the original patch, the following changes were made:
* Renamed the "static" quaternion instances ("PLUS_" prefix removed).
* Removed some (syntactic sugar) methods; removed or modified corresponding
  unit tests.
* Made the redundant accessors call the "canonic" ones.
* Removed the default tolerance and added an explicit tolerance parameter
  in methods that depend on equality testing.
* When a "ZeroException" is thrown, the actual value of the norm is provided
  in the detailed message (as the implementation actually does not use a
  strict comparison with 0).
* Added "equals(Object)" and "hashCode" methods.
* Javadoc and formatting. Added license header.
* Removed "toString" documentation (as this representation should not be
  binding). Changed the representation to not use a comma.
* Renamed "scalarMultiply" to "multiply".
* More stringent tolerance used in the unit tests assertions, whenever
  possible.
* Added unit tests.



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1388099 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 16:21:46 +00:00
Gilles Sadowski
600f00ba58 MATH-866
Method to test for equality with a given relative tolerance (due to
Yannick Tanguy and Julien Anxionnat). Original patch provided in
JIRA MATH-863 and committed with a few changes.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1387941 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 10:09:37 +00:00
Thomas Neidhart
0752ffec8f [MATH-666] added to changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1385318 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:54:20 +00:00
Thomas Neidhart
406a6ae49d Fixed typo and formatting in changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384454 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:21:05 +00:00
Thomas Neidhart
70b769ec7f Fixed typo in changes.xml.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384451 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:18:36 +00:00
Luc Maisonobe
621bbb8fc7 Fixed an error in rectangular Cholesky decomposition.
JIRA: MATH-789

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1384363 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 15:13:03 +00:00
Phil Steitz
66dece126a Clarified definition of isSupportXxxBoundInclusive in RealDistribution interface,
made code consistent with the definition, and deprecated these methods, marking
for removal in 4.0.
JIRA: MATH-859


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1382380 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 22:15:32 +00:00
Gilles Sadowski
52582d8c45 Update for MATH-841 and MATH-855.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1381212 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 14:51:46 +00:00
Thomas Neidhart
74cf48bee7 Fixed typo, indentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377302 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 14:11:42 +00:00
Luc Maisonobe
c768e7288a Integrated the new differentiation framework in the solvers package.
As discussed on the developers mailing list, a separate
NewtonRaphsonSolver has been set up using the new interfaces, and the
older NewtonSolver has been deprecated. It should be removed in 4.0.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1377245 13f79535-47bb-0310-9956-ffa450edef68
2012-08-25 10:06:00 +00:00
Phil Steitz
2c8cfb1aa7 Added RandomDataGenerator to replace RandomDataImpl and deprecated
RandomData interface and RandomDataImpl class. Deprecated
nextInversionDeviate methods from RandomDataImpl class. Ensured that
all nextXxx methods in RandomDataImpl/RandomDataGenerator use the
configured RandomGenerator.

JIRA: MATH-850

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1375192 13f79535-47bb-0310-9956-ffa450edef68
2012-08-20 19:53:57 +00:00
Gilles Sadowski
7994d3ee9d MATH-844
Generate an exception when the parameter guessing procedure cannot perform
correctly (in rare ill-conditioned cases).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374046 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:43:59 +00:00
Gilles Sadowski
30866a4cd3 MATH-815
Unit test update (patch provided by Jared Becksfort).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372556 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 19:14:00 +00:00
Luc Maisonobe
b46cdf1bd6 Added forgotten notification of recent changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371683 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:19:48 +00:00
Luc Maisonobe
87b597c622 Added a new package dealing with differentials.
The package is intended to deals with one or more free parameters and
derivation order 1 or higher.

The core elements are based on Dan Kalman paper "Recursive Multivariate
Automatic Differentiation", Mathematics Magazine, vol. 75, no. 3, June
2002. For efficiency, the recursive structure is compiled as simple
loops once for each pair (number of free parameters, derivation order).

This is work in progress, there are still some features missing even in
the most basic blocks (typically the asin, acos, atan, atant2 and taylor
methods in DSCompiler). There are also still no high level
differentiator implementation.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370951 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 20:33:43 +00:00
Thomas Neidhart
68486630e0 Added MATH-777 to changes.xml, thanks to Reid Hochstedler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369663 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:20:43 +00:00