You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2015/03/09 00:45:18 UTC

[1/2] [math] MATH-1207

Repository: commons-math
Updated Branches:
  refs/heads/master 4aa4c6d31 -> c1c61ce70


MATH-1207

Relax tolerance in unit test.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/86eb3a2f
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/86eb3a2f
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/86eb3a2f

Branch: refs/heads/master
Commit: 86eb3a2fa74988e4ccf3aae7f4b77edb84555320
Parents: 0a5cd11
Author: Gilles <er...@apache.org>
Authored: Mon Mar 9 00:42:35 2015 +0100
Committer: Gilles <er...@apache.org>
Committed: Mon Mar 9 00:42:35 2015 +0100

----------------------------------------------------------------------
 .../commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/86eb3a2f/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java b/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java
index 9051dd6..7a064cf 100644
--- a/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java
+++ b/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java
@@ -87,7 +87,7 @@ public class KohonenUpdateActionTest {
 
         Assert.assertEquals(bestBefore, bestAfter);
         // Distance is now zero.
-        Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), 0d);
+        Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), 1e-16);
 
         for (int i = 0; i < netSize; i++) {
             // All distances have decreased.


[2/2] [math] Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math

Posted by er...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-math


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/c1c61ce7
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/c1c61ce7
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/c1c61ce7

Branch: refs/heads/master
Commit: c1c61ce70d1e9f7ee005364ac797841f653ec3e6
Parents: 86eb3a2 4aa4c6d
Author: Gilles <er...@apache.org>
Authored: Mon Mar 9 00:44:45 2015 +0100
Committer: Gilles <er...@apache.org>
Committed: Mon Mar 9 00:44:45 2015 +0100

----------------------------------------------------------------------
 src/changes/changes.xml                         |   7 ++
 .../math4/exception/util/LocalizedFormats.java  |   1 +
 .../math4/filter/DefaultMeasurementModel.java   |   6 +-
 .../math4/filter/DefaultProcessModel.java       |  15 ++-
 .../commons/math4/fraction/BigFraction.java     |   9 ++
 .../math4/fraction/BigFractionField.java        |   3 +
 .../apache/commons/math4/fraction/Fraction.java |   9 ++
 .../commons/math4/fraction/FractionField.java   |   3 +
 .../commons/math4/genetics/BinaryMutation.java  |   1 +
 .../commons/math4/genetics/Chromosome.java      |   1 +
 .../commons/math4/genetics/CycleCrossover.java  |   1 +
 .../math4/genetics/ElitisticListPopulation.java |   1 +
 .../math4/genetics/FixedElapsedTime.java        |   6 +-
 .../math4/genetics/FixedGenerationCount.java    |   9 +-
 .../commons/math4/genetics/ListPopulation.java  |   7 +-
 .../commons/math4/genetics/NPointCrossover.java |   1 +
 .../math4/genetics/OnePointCrossover.java       |   1 +
 .../math4/genetics/OrderedCrossover.java        |   1 +
 .../commons/math4/genetics/RandomKey.java       |   1 +
 .../math4/genetics/RandomKeyMutation.java       |   1 +
 .../math4/genetics/TournamentSelection.java     |   2 +
 .../math4/genetics/UniformCrossover.java        |   1 +
 .../math4/ml/clustering/DoublePoint.java        |   1 +
 .../math4/ml/distance/CanberraDistance.java     |   1 +
 .../math4/ml/distance/ChebyshevDistance.java    |   1 +
 .../math4/ml/distance/EarthMoversDistance.java  |   1 +
 .../math4/ml/distance/EuclideanDistance.java    |   1 +
 .../math4/ml/distance/ManhattanDistance.java    |   1 +
 .../math4/random/EmpiricalDistribution.java     |   2 +-
 .../org/apache/commons/math4/special/Beta.java  |   2 -
 .../stat/correlation/SpearmansCorrelation.java  | 109 +++++--------------
 .../util/LocalizedFormats_fr.properties         |   1 +
 .../exception/util/LocalizedFormatsTest.java    |   2 +-
 .../math4/random/EmpiricalDistributionTest.java |  15 +++
 .../SpearmansRankCorrelationTest.java           |   9 +-
 35 files changed, 129 insertions(+), 104 deletions(-)
----------------------------------------------------------------------