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 2016/11/27 04:42:42 UTC
[1/2] commons-rng git commit: Release notes.
Repository: commons-rng
Updated Branches:
refs/heads/master 886a38fe6 -> ab4629394
Release notes.
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/9d1e0f36
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/9d1e0f36
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/9d1e0f36
Branch: refs/heads/master
Commit: 9d1e0f3649a76dd0766591f5337748d9bd58bbbe
Parents: 886a38f
Author: Gilles <er...@apache.org>
Authored: Sun Nov 27 05:07:50 2016 +0100
Committer: Gilles <er...@apache.org>
Committed: Sun Nov 27 05:07:50 2016 +0100
----------------------------------------------------------------------
src/changes/changes.xml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/9d1e0f36/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5a3c372..2faeb47 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -53,8 +53,16 @@ If the output is not quite correct, check for invisible trailing spaces!
<release version="1.0" date="TBD" description="
This is the first release of Apache Commons RNG.
-The minimum version of the Java platform required to compile and use
- Apache Commons RNG 1.0 is Java 6.
+Apache Commons RNG 1.0 contains the following modules:
+ commons-rng-client-api (requires Java 6)
+ commons-rng-core (requires Java 6)
+ commons-rng-simple (requires Java 6)
+ commons-rng-sampling (requires Java 6)
+ commons-rng-jmh (requires Java 6)
+ commons-rng-examples (requires Java 7)
+
+For more information, please refer to the userguide and apidocs:
+ http://commons.apache.org/rng/
">
<!-- <action dev="erans" type="fix" issue="RNG-xxx"> -->
<!-- </action> -->
[2/2] commons-rng git commit: Precomputation.
Posted by er...@apache.org.
Precomputation.
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/ab462939
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/ab462939
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/ab462939
Branch: refs/heads/master
Commit: ab46293943634b7689761512f8c3dbf47de59e8b
Parents: 9d1e0f3
Author: Gilles <er...@apache.org>
Authored: Sun Nov 27 05:40:19 2016 +0100
Committer: Gilles <er...@apache.org>
Committed: Sun Nov 27 05:40:19 2016 +0100
----------------------------------------------------------------------
.../apache/commons/rng/sampling/distribution/PoissonSampler.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/ab462939/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
index 9ac3249..ca2f7ce 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSampler.java
@@ -66,7 +66,9 @@ public class PoissonSampler
gaussian = new BoxMullerGaussianSampler(rng, 0, 1);
exponential = new AhrensDieterExponentialSampler(rng, 1);
- factorialLog = InternalUtils.FactorialLog.create();
+ factorialLog = mean < PIVOT ?
+ null : // Not used.
+ InternalUtils.FactorialLog.create().withCache((int) Math.min(mean, 2 * PIVOT));
}
/** {@inheritDoc} */