Thomas Neidhart
000f980b0b
Add missing closing tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461867 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 21:56:40 +00:00
Thomas Neidhart
af2246395d
Add clarification about default distance measure to javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461866 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 21:54:36 +00:00
Thomas Neidhart
363e116e34
[MATH-917] Refactored clustering package to include more distance measures.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461862 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 21:48:10 +00:00
Thomas Neidhart
2b852d79dc
[MATH-891] SpearmansCorrelation now works correctly when provided with a NaturalRanking with NaNStrategy.REMOVED.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461822 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 19:44:22 +00:00
Luc Maisonobe
ce9c345ef7
Replaced mask constant by explicit local constants.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461283 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 19:48:08 +00:00
Gilles Sadowski
bb8a2a68ec
MATH-956
...
Replaced hard-coded numbers with constants from class "Precision".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461197 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 16:01:09 +00:00
Luc Maisonobe
e4c91be8c9
Fixed loading of test file when path contains a space.
...
JIRA:MATH-955
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461172 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 15:11:18 +00:00
Luc Maisonobe
9cec1ea8d6
FastMath.abs() without branching for float and double primitive types.
...
JIRA: MATH-954
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1461159 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 14:56:01 +00:00
Luc Maisonobe
16e0a6d47b
Fixed tests so they do not use equals on top level classes.
...
Patch submitted by Jared Becksfort.
JIRA: MATH-817
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1460726 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 15:47:31 +00:00
Luc Maisonobe
78f8c198c0
Improved speed of FastMath.abs methods, by removing branching.
...
JIRA: MATH-954
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1460604 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 10:46:42 +00:00
Luc Maisonobe
1e6ad5c3ab
Improved speed of several FastMath methods.
...
Double.doubleToLongBits replaced with Double.doubleToRawLongBits at
several places.
JIRA: MATH-953
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1460587 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 10:19:51 +00:00
Luc Maisonobe
724795b551
Fixed Complex.reciprocal() for zero argument.
...
JIRA: MATH-934
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459927 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 18:55:58 +00:00
Sebastian Bazley
8c2199df0f
Fix up URLs so they point to actual sites; this allows relative URLs to work properly
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459912 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 17:49:27 +00:00
Luc Maisonobe
5c14a29c69
Improved speed of FastMath copysign methods.
...
JIRA: MATH-951
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459887 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 16:25:17 +00:00
Luc Maisonobe
787684869d
Added change for MATH-817.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459886 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 16:24:37 +00:00
Luc Maisonobe
2fa0f1fc97
Clarified origin of the class.
...
The original comments seemed to show the class was created from
Mixtools, which is GPL code. As per discussion on the JIRA issue
MATH-817 (see https://issues.apache.org/jira/browse/MATH-817 ), it
appears it is original work and NOT a derived work from Mixtools.
In fact, Mixtools was used mainly to verify the results and generate
some reference data (see the Junit test cases). Neither the code nor the
API from Mixtools were used.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459876 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 16:05:46 +00:00
Luc Maisonobe
9f1bc5ba42
Added missing package-info.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459874 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 16:05:14 +00:00
Gilles Sadowski
8f157cb2df
Typos.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459739 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 11:58:11 +00:00
Thomas Neidhart
0864279db2
Fix typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459554 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 22:21:48 +00:00
Thomas Neidhart
b32f86259d
Formatting und removal of unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459552 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 22:18:32 +00:00
Thomas Neidhart
7703060003
Add missing version/since tags, throws clauses.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459551 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 22:17:44 +00:00
Thomas Neidhart
bd95671403
[MATH-862] Correct fix for matrix dimension check in copySubMatrix.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459534 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 21:24:45 +00:00
Gilles Sadowski
9c90639c10
MATH-817
...
Algorithem for fitting of a multivariate normal distributions mixture
(implemented by Jared Becksfort).
Added "MixtureMultivariateNormalDistribution" class as "syntactic sugar".
Two unit tests are currently set to "@Ignore" (because they rely on "equals"
which the patch did not seem to implement "equals" consistently).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459382 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 16:22:02 +00:00
Thomas Neidhart
2993a89b06
Revert fix for MATH-862: it created test regressions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459171 13f79535-47bb-0310-9956-ffa450edef68
2013-03-21 07:15:32 +00:00
Thomas Neidhart
3f7280b87e
Fix typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459082 13f79535-47bb-0310-9956-ffa450edef68
2013-03-20 22:24:09 +00:00
Thomas Neidhart
cb83dcd4a3
[MATH-862] check for rectangular input arrays in copySubMatrix methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1459081 13f79535-47bb-0310-9956-ffa450edef68
2013-03-20 22:21:54 +00:00
Luc Maisonobe
9fd53fafa1
Fixed checkstyle warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458491 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 20:13:11 +00:00
Luc Maisonobe
59eb9a9bad
Removed development statement.
...
I'm really sorry for this...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458478 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 19:48:03 +00:00
Luc Maisonobe
68a9dc050f
Removed a spurious @Override.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458468 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 19:32:28 +00:00
Gilles Sadowski
f83bbc1d68
MATH-949
...
Increment iteration counter.
By default, the maximum number of iterations is "Integer.MAX_VALUE".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458323 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 14:51:30 +00:00
Luc Maisonobe
4e4e8fad43
Added a way to trigger only increasing or decreasing events in ODE.
...
The method used is completely different from what was suggested in the
request report. It is fully compatible with previous versions and most
importantly has no side effects on users that do not need this feature,
as it is based on an upstream filtering of the event definition
function. The events detection logic is not modified and it fact it does
not even know events are filtered before they are detected.
JIRA: MATH-811
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458298 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 14:09:58 +00:00
Luc Maisonobe
424cbd201c
Fixed missing update in ODE event handlers.
...
When a RESET_STATE was triggered, event states for events not triggered
in the same step were not updated properly.
JIRA: MATH-950
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458294 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 14:09:08 +00:00
Phil Steitz
d18a6b8510
Replaced tests predating inference package with Chi-square tests. JIRA: MATH-598.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1457491 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 17:15:31 +00:00
Phil Steitz
5d5f253240
Made EmpiricalDistribution smoothing kernel pluggable.
...
To enable subclasses to provide the enclosing distribution's underlying RandomGenerator
to distribution constructors, two more changes were required:
* In EmpiricalDistribution, the RandomDataGenerator field (randomData) was changed
from private to protected.
* The private getRan() method in RandomDataGenerator returning the underlying
RandomGenerator was renamed getRandomGenerator and made public.
JIRA: MATH-671
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1457372 13f79535-47bb-0310-9956-ffa450edef68
2013-03-17 04:28:04 +00:00
Phil Steitz
7dd09bfb64
Dropped System.out.println from test code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1457138 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 21:49:05 +00:00
Phil Steitz
02d2d148fc
Added array-scaling methods to MathArrays. Patch provided by Jared Becksfort. JIRA: MATH-877
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1457130 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 21:30:41 +00:00
Luc Maisonobe
606fdac7df
Allow direct use of SummaryStatistics in one-way ANOVA.
...
Patch provided by Peter Andrews.
JIRA: MATH-877
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456958 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 13:55:27 +00:00
Luc Maisonobe
2e66239120
Added missing headers.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1456957 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 13:54:52 +00:00
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