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/11/27 15:44:08 UTC

[commons-rng] branch master updated (74c39e6 -> 0a581de)

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 74c39e6  Add stress test results for new fixed increment PCG generators.
     new 517e8f6  Add note about updating component_releases.properties
     new 929cece  Update to commons-skin-4.2.
     new 0a581de  Update javadoc examples to use factory method 'of'.

The 3 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:
 .../InverseTransformContinuousSampler.java          | 12 ++++++------
 .../InverseTransformDiscreteSampler.java            | 12 ++++++------
 .../sampling/distribution/PoissonSamplerCache.java  |  2 +-
 doc/release/release.howto.txt                       | 12 +++++++++++-
 src/site/site.xml                                   | 21 ++++++++++++++++++++-
 5 files changed, 44 insertions(+), 15 deletions(-)


[commons-rng] 03/03: Update javadoc examples to use factory method 'of'.

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 0a581de84aadfd0b9bed8b99ee0b7b7cd1f2489d
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Nov 27 15:23:46 2019 +0000

    Update javadoc examples to use factory method 'of'.
---
 .../distribution/InverseTransformContinuousSampler.java      | 12 ++++++------
 .../distribution/InverseTransformDiscreteSampler.java        | 12 ++++++------
 .../rng/sampling/distribution/PoissonSamplerCache.java       |  2 +-
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.java
index b43ad12..2f5c722 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.java
@@ -42,12 +42,12 @@ import org.apache.commons.rng.UniformRandomProvider;
  * final RealDistribution dist = new ChiSquaredDistribution(9);
  * // Create the sampler.
  * final ContinuousSampler chiSquareSampler =
- *     new InverseTransformContinuousSampler(RandomSource.create(RandomSource.MT),
- *                                           new ContinuousInverseCumulativeProbabilityFunction() {
- *                                               public double inverseCumulativeProbability(double p) {
- *                                                   return dist.inverseCumulativeProbability(p);
- *                                               }
- *                                           });
+ *     InverseTransformContinuousSampler.of(RandomSource.create(RandomSource.MT),
+ *                                          new ContinuousInverseCumulativeProbabilityFunction() {
+ *                                              public double inverseCumulativeProbability(double p) {
+ *                                                  return dist.inverseCumulativeProbability(p);
+ *                                              }
+ *                                          });
  *
  * // Generate random deviate.
  * double random = chiSquareSampler.sample();
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.java
index 3f5991c..fcf04dc 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.java
@@ -42,12 +42,12 @@ import org.apache.commons.rng.UniformRandomProvider;
  * final IntegerDistribution dist = new BinomialDistribution(11, 0.56);
  * // Create the sampler.
  * final DiscreteSampler binomialSampler =
- *     new InverseTransformDiscreteSampler(RandomSource.create(RandomSource.MT),
- *                                         new DiscreteInverseCumulativeProbabilityFunction() {
- *                                             public int inverseCumulativeProbability(double p) {
- *                                                 return dist.inverseCumulativeProbability(p);
- *                                             }
- *                                         });
+ *     InverseTransformDiscreteSampler.of(RandomSource.create(RandomSource.MT),
+ *                                        new DiscreteInverseCumulativeProbabilityFunction() {
+ *                                            public int inverseCumulativeProbability(double p) {
+ *                                                return dist.inverseCumulativeProbability(p);
+ *                                            }
+ *                                        });
  *
  * // Generate random deviate.
  * int random = binomialSampler.sample();
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSamplerCache.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSamplerCache.java
index 184f8d5..a294783 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSamplerCache.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/PoissonSamplerCache.java
@@ -144,7 +144,7 @@ public class PoissonSamplerCache {
      * Creates a new Poisson sampler.
      *
      * <p>The returned sampler will function exactly the
-     * same as {@link PoissonSampler#PoissonSampler(UniformRandomProvider, double)}.
+     * same as {@link PoissonSampler#of(UniformRandomProvider, double)}.
      *
      * @param rng  Generator of uniformly distributed random numbers.
      * @param mean Mean.


[commons-rng] 01/03: Add note about updating component_releases.properties

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 517e8f66138196f7d1482e095d53f9a757fde181
Author: aherbert <ah...@apache.org>
AuthorDate: Mon Nov 25 13:17:26 2019 +0000

    Add note about updating component_releases.properties
---
 doc/release/release.howto.txt | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/doc/release/release.howto.txt b/doc/release/release.howto.txt
index 67f4176..e9d9cab 100644
--- a/doc/release/release.howto.txt
+++ b/doc/release/release.howto.txt
@@ -708,11 +708,21 @@ Adding:
   $ svn status | awk '{if ($1 == "?") print $2 }' | xargs svn add
 
 Commit the new contents of the web site:
- $ svn commit -m "Commons RNG v1.3 was released (from RC1). Web site update"
+  $ svn commit -m "Commons RNG v1.3 was released (from RC1). Web site update"
 
 Note the SVN website revision for the next step.
 
 
+Edit the file component_releases.properties to hold the current version and release date for
+your component:
+
+  $ svn checkout --depth files https://svn.apache.org/repos/asf/commons/cms-site/trunk/conf/component_releases.properties
+
+  [edit file]
+
+  $ (cd conf && svn commit -m "Commons RNG v1.3 was released (from RC1)")
+
+
 (20)
 The Javadoc for several versions is kept available on the website, under the
 "javadocs" directory.


[commons-rng] 02/03: Update to commons-skin-4.2.

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 929cececb06bf13a36c2cf0f632503f87004c75b
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Nov 27 15:20:58 2019 +0000

    Update to commons-skin-4.2.
---
 src/site/site.xml | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/site/site.xml b/src/site/site.xml
index b69aba8..5be5a76 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -26,6 +26,12 @@
     <href>https://commons.apache.org/proper/commons-rng/index.html</href>
   </bannerRight>
 
+  <skin>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-skin</artifactId>
+    <version>4.2</version>
+  </skin>
+
   <body>
     <head>
       <![CDATA[<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
@@ -47,6 +53,19 @@
     <menu name="User Guide">
       <item name="Contents" href="/userguide/index.html"/>
     </menu>
-
   </body>
+
+  <custom>
+    <!-- Custom properties controlling the commons-skin template. -->
+    <commonsSkin>
+      <!-- 
+        Convert preformatted source section tags to prettyprint:
+          <div class="source"><pre> to <div class="source"><pre class="prettyprint">
+      -->
+      <prettyPrintSourcePreTags>true</prettyPrintSourcePreTags>
+
+      <!-- Add the "linenums" class to the prettyprint enabled source tags -->
+      <prettyPrintLineNumbersEnabled>false</prettyPrintLineNumbersEnabled>
+    </commonsSkin>
+  </custom>
 </project>