You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2016/01/02 19:52:45 UTC
[1/3] [math] Spurious @Override.
Repository: commons-math
Updated Branches:
refs/heads/MATH_3_X 68194a3bf -> 026e33053
Spurious @Override.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/e2066886
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/e2066886
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/e2066886
Branch: refs/heads/MATH_3_X
Commit: e206688654f171f8757911cd904771bb6200b492
Parents: c5e6ccb
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sat Jan 2 19:44:30 2016 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sat Jan 2 19:44:30 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/commons/math3/random/BitsStreamGenerator.java | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e2066886/src/main/java/org/apache/commons/math3/random/BitsStreamGenerator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/random/BitsStreamGenerator.java b/src/main/java/org/apache/commons/math3/random/BitsStreamGenerator.java
index 9f7cb56..7a8aef5 100644
--- a/src/main/java/org/apache/commons/math3/random/BitsStreamGenerator.java
+++ b/src/main/java/org/apache/commons/math3/random/BitsStreamGenerator.java
@@ -187,7 +187,6 @@ public abstract class BitsStreamGenerator
*
* @param bytes Array in which to put the generated bytes. Cannot be {@code null}.
*/
- @Override
public void nextBytes(byte[] bytes) {
nextBytesFill(bytes, 0, bytes.length);
}
[2/3] [math] Enlarged test tolerance as test did not pass with Java 5.
Posted by lu...@apache.org.
Enlarged test tolerance as test did not pass with Java 5.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/775bde7a
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/775bde7a
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/775bde7a
Branch: refs/heads/MATH_3_X
Commit: 775bde7a4df691bd5890475d0398a31411508f81
Parents: e206688
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sat Jan 2 19:46:33 2016 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sat Jan 2 19:46:33 2016 +0100
----------------------------------------------------------------------
.../math3/distribution/EnumeratedIntegerDistributionTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-math/blob/775bde7a/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java b/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
index 85aa5af..4277187 100644
--- a/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
+++ b/src/test/java/org/apache/commons/math3/distribution/EnumeratedIntegerDistributionTest.java
@@ -22,6 +22,7 @@ import org.apache.commons.math3.exception.NotANumberException;
import org.apache.commons.math3.exception.NotFiniteNumberException;
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.util.FastMath;
+import org.apache.commons.math3.util.Precision;
import org.junit.Assert;
import org.junit.Test;
@@ -173,7 +174,7 @@ public class EnumeratedIntegerDistributionTest {
public void testCreateFromIntegers() {
final int[] data = new int[] {0, 1, 1, 2, 2, 2};
EnumeratedIntegerDistribution distribution = new EnumeratedIntegerDistribution(data);
- Assert.assertEquals(0.5, distribution.probability(2), 0);
- Assert.assertEquals(0.5, distribution.cumulativeProbability(1), 0);
+ Assert.assertEquals(0.5, distribution.probability(2), Precision.EPSILON);
+ Assert.assertEquals(0.5, distribution.cumulativeProbability(1), Precision.EPSILON);
}
}
[3/3] [math] Merge branch 'MATH_3_X' of
https://luc@git-wip-us.apache.org/repos/asf/commons-math.git into MATH_3_X
Posted by lu...@apache.org.
Merge branch 'MATH_3_X' of https://luc@git-wip-us.apache.org/repos/asf/commons-math.git into MATH_3_X
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/026e3305
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/026e3305
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/026e3305
Branch: refs/heads/MATH_3_X
Commit: 026e3305399dca03146da7f38c7be087395e60cb
Parents: 775bde7 68194a3
Author: Luc Maisonobe <lu...@apache.org>
Authored: Sat Jan 2 19:52:22 2016 +0100
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Sat Jan 2 19:52:22 2016 +0100
----------------------------------------------------------------------
build.xml | 23 +++++++++++++++++------
test-jar.xml | 50 ++++++++++++++++----------------------------------
2 files changed, 33 insertions(+), 40 deletions(-)
----------------------------------------------------------------------