Commit Graph

5068 Commits

Author SHA1 Message Date
Luc Maisonobe b421289d6e Fixed javadoc errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456956 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 13:54:20 +00:00
Luc Maisonobe c75c9e4092 Fixed infinite loop when NaN occurs in singular value decomposition.
JIRA: MATH-947

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456931 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 12:34:35 +00:00
Luc Maisonobe 53039d5d04 Added the Lévy distribution.
The patch from Andrew Waterman has been added, with several fixes and
extensions.

JIRA: MATH-460

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456907 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 11:39:14 +00:00
Luc Maisonobe 97a3ed9e21 Use erfinv in the normal distribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456906 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 11:38:23 +00:00
Luc Maisonobe 747476596e Inverse error function and inverse complementary error function.
JIRA: MATH-948

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456905 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 11:37:35 +00:00
Phil Steitz f636e77707 Renamed Discrete*Distribution to Enumerated*Distribution, improved javadoc, made some exceptions more precise. JIRA: MATH-942.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456769 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 04:51:34 +00:00
Thomas Neidhart 8e14f37169 Fix Clirr error wrt return type of DiagonalMatrix#copy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456179 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 22:02:07 +00:00
Luc Maisonobe 7b9797f4a2 Extended ranges for FastMath performance tests.
JIRA: MATH-580

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455921 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:55:46 +00:00
Luc Maisonobe 2fd0bbbeec Finalized implementation of diagonal matrix.
JIRA: MATH-925

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455890 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 11:33:06 +00:00
Thomas Neidhart 8e48388154 Formatting, replace <, > with html entities.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455722 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 21:32:06 +00:00
Thomas Neidhart 6422f76a75 Fix findbugs warnings: non-serializable field, minor formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455716 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 21:12:21 +00:00
Thomas Neidhart 8586637471 Fix checkstyle warning: argument hides field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455704 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 20:48:14 +00:00
Thomas Neidhart c664e4d33c Add null check to merge methods, refactor code a bit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455703 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 20:46:23 +00:00
Luc Maisonobe e1f1860894 Added rank revealing QR decomposition.
Patch applied after conversion to current status and slight adaptations.

JIRA: MATH-630

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455627 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 17:08:52 +00:00
Luc Maisonobe 62f86d9580 ArrayFieldVector can now be constructed from any FieldVector.
Thanks to Arne Plöse.

JIRA: MATH-570

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455260 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 17:55:12 +00:00
Luc Maisonobe cb5e94419f Improved checking of null vector elements.
The suggestions by Sébastien have been added and the second
implementation of FieldVector (SparseFieldVector) has been adapted
accordingly, despite it is deprecated.

JIRA: MATH-861

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455233 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 17:00:41 +00:00
Luc Maisonobe 6f3165670c Filled throws clauses for the analysis package.
JIRA: MATH-854

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455194 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 15:45:54 +00:00
Luc Maisonobe 3ad5595706 Removed the log10 declaration in RealFieldElement interface.
This method introduced a binary incompatibility as one implementing
class (Dfp) did not have the proper return type and had to be changed.
The method will be added back in the interface for 4.0, when it will be
allowed to change the return type for Dfp.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455053 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 08:37:12 +00:00
Phil Steitz 9d5715114c Removed implementation-specific doco from interface javadoc. The impl notes are already in the impl class docs (at least one of them).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1455000 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 05:04:42 +00:00
Sebastian Bazley 0f7a461e1f Add some recent tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454961 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 23:41:21 +00:00
Thomas Neidhart e7f70e46c9 [MATH-942] Add sample(int, T[]) method, add missing since tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454925 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 21:34:20 +00:00
Luc Maisonobe c99413d2e9 Added utilities for prime numbers.
Thanks to Sébastien Riou.

JIRA: MATH-845

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454920 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 21:05:20 +00:00
Luc Maisonobe ca139a75fe Fixed checkstyle error.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454917 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 20:45:02 +00:00
Luc Maisonobe 2fe8ea8d8e Removed wrong explanation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454904 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 19:46:02 +00:00
Luc Maisonobe dc8b1f4ac5 Renamed ExtendedFieldElement into RealFieldElement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454903 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 19:44:31 +00:00
Luc Maisonobe a51119c013 Fixed generation of long random numbers between two bounds.
We now directly use discrete raw values to build the int/double instead
of relying on floating point arithmetic.

JIRA: MATH-936

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454897 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 19:02:54 +00:00
Luc Maisonobe 55a655ca2b Fixed CLIRR error, by putting back protected methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454876 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 16:41:08 +00:00
Thomas Neidhart 56ed0aeb10 Added change entry for tests already added in 3.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454861 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 14:56:18 +00:00
Thomas Neidhart e7a8a26185 Add exclude filters for false-positive: serialization is handled by an inner class via readResolve.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454856 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 14:39:21 +00:00
Luc Maisonobe fd8a0da6b9 Fixed warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454847 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 13:07:08 +00:00
Luc Maisonobe 26f3166f11 Test new RandomDataGenerator class rather than deprecated RandomImpl.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454846 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 13:02:04 +00:00
Luc Maisonobe 0d057fc6dc Fixed creation of generic array.
Thanks to Piotr Wydrych.

JIRA: MATH-942

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454840 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 12:01:00 +00:00
Luc Maisonobe f00bd95151 Check bounds in multi-start vector optimizers.
JIRA: MATH-914

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454746 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 17:37:30 +00:00
Luc Maisonobe 5f9169496b Added exclude filters for RAT.
Many Apache license headers have been added in previous commits
(r1454703, r1454718, r1454719, r1454721, r1454722, r1454723). However
some test data files cannot be changed (empty file, files published by
by NIST), and in fact the content of this files is public, so they
cannot be subject to Apache license, so they are excluded from the RAT
report.

JIRA: MATH-921

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454726 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:50:19 +00:00
Luc Maisonobe 41b097afa5 Added Apache license headers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454723 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:40:21 +00:00
Luc Maisonobe b95d3997a8 Added Apache license header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454722 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:40:01 +00:00
Luc Maisonobe 374fe6e432 Added Apache license headers.
The header has been added to data files, and the corresponding test has
been updated to ignore the header lines.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454721 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:39:41 +00:00
Luc Maisonobe 95ec5653c6 Added Apache license headers.
The header has been added to test files, and the corresponding test
updated to ignore the header lines.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454719 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:34:05 +00:00
Luc Maisonobe 76654191ac Added missing Apache license headers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454718 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 14:33:31 +00:00
Luc Maisonobe cf5eea99f4 removed .svnignore file that made RAT unhappy because of missing license header.
The svn:ignore property is still set on the directory, so the file was superfluous.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454703 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 13:36:07 +00:00
Luc Maisonobe a0086bc16d Fixed javadoc errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454464 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 16:58:10 +00:00
Luc Maisonobe fde2416fe3 Fixed false positive findbugs warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454462 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 16:57:28 +00:00
Luc Maisonobe 2405474275 Fixed checkstyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454461 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 16:56:59 +00:00
Luc Maisonobe 2dd51f50d9 Removed redundant public modifiers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454442 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 16:09:12 +00:00
Luc Maisonobe b13e6785df Added missing header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454441 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 16:08:43 +00:00
Luc Maisonobe 91ebbb6294 Added discrete distributions.
Patch contributed by Piotr Wydrych.

JIRA: MATH-941

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454439 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 15:59:29 +00:00
Thomas Neidhart e6a5e6dc9c Make more specific exclude filter for download cgi.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454262 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 07:33:54 +00:00
Thomas Neidhart 26a0fb3b40 Put back in the -Prelease profile.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454258 13f79535-47bb-0310-9956-ffa450edef68
2013-03-08 07:26:01 +00:00
Thomas Neidhart 721a674d93 Exclude download cgi from source distribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454037 13f79535-47bb-0310-9956-ffa450edef68
2013-03-07 19:29:41 +00:00
Thomas Neidhart e0d71d7747 Fix first step in release howto.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1453990 13f79535-47bb-0310-9956-ffa450edef68
2013-03-07 18:36:15 +00:00