You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/06/06 10:56:59 UTC

[commons-rng] branch master updated (54a385f -> d4462db)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git.


    from 54a385f  RNG-75: Track changes.
     new 12d2dc8  RNG-103: Use KempSmallMeanPoissonSampler in LargeMeanPoissonSampler.
     new d4462db  RNG-103: Track changes.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../commons/rng/sampling/distribution/LargeMeanPoissonSampler.java    | 4 ++--
 src/changes/changes.xml                                               | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)


[commons-rng] 02/02: RNG-103: Track changes.

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit d4462db2acfa6a695a0eadfd8812432fc08f97bd
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Jun 6 11:56:55 2019 +0100

    RNG-103: Track changes.
    
    Closes #47
---
 src/changes/changes.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cda4769..f39ce4e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -75,6 +75,10 @@ re-run tests that fail, and pass the build if they succeed
 within the allotted number of reruns (the test will be marked
 as 'flaky' in the report).
 ">
+      <action dev="aherbert" type="update" issue="RNG-103">
+        "LargeMeanPoissonSampler: Switch from SmallMeanPoissonSampler to use
+        KempSmallMeanPoissonSampler for the fractional mean sample.
+      </action>
       <action dev="aherbert" type="update" issue="RNG-75">
         "RandomSource.create(...)": Refactor internal components to allow custom seeding routines
         per random source. Improvements were made to the speed of creating generators with small


[commons-rng] 01/02: RNG-103: Use KempSmallMeanPoissonSampler in LargeMeanPoissonSampler.

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 12d2dc8c05fe4ce9b18cc2914659c853ff05cc8c
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Jun 6 09:50:01 2019 +0100

    RNG-103: Use KempSmallMeanPoissonSampler in LargeMeanPoissonSampler.
---
 .../commons/rng/sampling/distribution/LargeMeanPoissonSampler.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSampler.java
index 20baacf..3421db9 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSampler.java
@@ -142,7 +142,7 @@ public class LargeMeanPoissonSampler
         final double lambdaFractional = mean - lambda;
         smallMeanPoissonSampler = (lambdaFractional < Double.MIN_VALUE) ?
             NO_SMALL_MEAN_POISSON_SAMPLER : // Not used.
-            new SmallMeanPoissonSampler(rng, lambdaFractional);
+            new KempSmallMeanPoissonSampler(rng, lambdaFractional);
     }
 
     /**
@@ -183,7 +183,7 @@ public class LargeMeanPoissonSampler
         // The algorithm requires a Poisson sample from the remaining lambda fraction.
         smallMeanPoissonSampler = (lambdaFractional < Double.MIN_VALUE) ?
             NO_SMALL_MEAN_POISSON_SAMPLER : // Not used.
-            new SmallMeanPoissonSampler(rng, lambdaFractional);
+            new KempSmallMeanPoissonSampler(rng, lambdaFractional);
     }
 
     /** {@inheritDoc} */