commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [2/6] commons-rng git commit: Increase coverage.
Date Tue, 22 Nov 2016 13:07:03 GMT
Increase coverage.


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

Branch: refs/heads/master
Commit: f3675a4633b0f7ceb6514d07898fc283a6633032
Parents: 6294d7a
Author: Gilles <erans@apache.org>
Authored: Tue Nov 22 13:06:01 2016 +0100
Committer: Gilles <erans@apache.org>
Committed: Tue Nov 22 13:06:01 2016 +0100

----------------------------------------------------------------------
 .../rng/sampling/distribution/ContinuousSamplersList.java        | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/f3675a46/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
index 76d6510..3854771 100644
--- a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
+++ b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/ContinuousSamplersList.java
@@ -53,11 +53,15 @@ public class ContinuousSamplersList {
             // Beta ("Cheng").
             add(LIST, new org.apache.commons.math3.distribution.BetaDistribution(alphaBeta,
betaBeta),
                 new ChengBetaSampler(RandomSource.create(RandomSource.MWC_256), alphaBeta,
betaBeta));
+            add(LIST, new org.apache.commons.math3.distribution.BetaDistribution(betaBeta,
alphaBeta),
+                new ChengBetaSampler(RandomSource.create(RandomSource.WELL_19937_A), betaBeta,
alphaBeta));
             // Beta ("Cheng", alternate algorithm).
             final double alphaBetaAlt = 0.5678;
             final double betaBetaAlt = 0.1234;
             add(LIST, new org.apache.commons.math3.distribution.BetaDistribution(alphaBetaAlt,
betaBetaAlt),
                 new ChengBetaSampler(RandomSource.create(RandomSource.WELL_512_A), alphaBetaAlt,
betaBetaAlt));
+            add(LIST, new org.apache.commons.math3.distribution.BetaDistribution(betaBetaAlt,
alphaBetaAlt),
+                new ChengBetaSampler(RandomSource.create(RandomSource.WELL_19937_C), betaBetaAlt,
alphaBetaAlt));
 
             // Cauchy ("inverse method").
             final double medianCauchy = 0.123;


Mime
View raw message