From ae2f5f75b441fc582d9dfc364e1d4be9482b29bf Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 31 May 2024 14:04:14 -0400 Subject: [PATCH] documentation update --- .../math/rand/EnhancedRandomGenerator.java | 15 ++++++---- .../cicirello/math/rand/RandomVariates.java | 30 +++++++++++-------- .../cicirello/math/rand/ZigguratGaussian.java | 10 ++++--- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/main/java/org/cicirello/math/rand/EnhancedRandomGenerator.java b/src/main/java/org/cicirello/math/rand/EnhancedRandomGenerator.java index 555a310..cd0f8c0 100644 --- a/src/main/java/org/cicirello/math/rand/EnhancedRandomGenerator.java +++ b/src/main/java/org/cicirello/math/rand/EnhancedRandomGenerator.java @@ -459,8 +459,9 @@ public final double nextCauchy(double median, double scale) { * the following report: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param stddev The standard deviation of the Gaussian. @@ -1355,8 +1356,9 @@ public final Stream windowedTriples(long streamSize, int n, int win * information as well as experimental comparison, see the following report: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @return A random number from a Gaussian distribution with mean 0 and standard deviation 1. @@ -1378,8 +1380,9 @@ public final double nextGaussian() { * information as well as experimental comparison, see the following report: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param mean The mean of the Gaussian. diff --git a/src/main/java/org/cicirello/math/rand/RandomVariates.java b/src/main/java/org/cicirello/math/rand/RandomVariates.java index 1da4e3f..37f87ec 100644 --- a/src/main/java/org/cicirello/math/rand/RandomVariates.java +++ b/src/main/java/org/cicirello/math/rand/RandomVariates.java @@ -129,8 +129,9 @@ public static double nextCauchy(double scale, RandomGenerator r) { * implementation of McFarland's modified ziggurat algorithm, which is much faster. * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param mu The mean of the Gaussian. @@ -152,8 +153,9 @@ public static double nextGaussian(double mu, double sigma) { * relevant experiments: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param mu The mean of the Gaussian. @@ -177,8 +179,9 @@ public static double nextGaussian(double mu, double sigma, RandomGenerator r) { * implementation of McFarland's modified ziggurat algorithm, which is much faster. * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param sigma The standard deviation of the Gaussian. @@ -199,8 +202,9 @@ public static double nextGaussian(double sigma) { * relevant experiments: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param sigma The standard deviation of the Gaussian. @@ -222,8 +226,9 @@ public static double nextGaussian(double sigma, RandomGenerator r) { * implementation of McFarland's modified ziggurat algorithm, which is much faster. * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @return A random number from a Gaussian distribution with mean 0 and standard deviation 1. @@ -242,8 +247,9 @@ public static double nextGaussian() { * relevant experiments: * *

Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. Technical - * Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * @param r The pseudorandom number generator to use for the source of randomness. diff --git a/src/main/java/org/cicirello/math/rand/ZigguratGaussian.java b/src/main/java/org/cicirello/math/rand/ZigguratGaussian.java index 23a81dd..d911164 100644 --- a/src/main/java/org/cicirello/math/rand/ZigguratGaussian.java +++ b/src/main/java/org/cicirello/math/rand/ZigguratGaussian.java @@ -66,8 +66,9 @@ * *

* @@ -181,8 +182,9 @@ final class ZigguratGaussian { * the relevant issues: * * Vincent A. Cicirello. 2024. Fast Gaussian - * Distributed Pseudorandom Number Generation in Java via the Ziggurat Algorithm. - * Technical Report ALG-24-009, Cicirello.org, May 2024. . arXiv:2405.19493, May 2024. doi:10.48550/arXiv.2405.19493. [PDF] * * - Thus, as of 5/30/2024, we are stripping out all of the ThreadLocalRandom related