On 17/05/2019 14:41, Gilles Sadowski wrote:
Hi Alex.
Le ven. 17 mai 2019 à 15:33, <aherb...@apache.org> a écrit :
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 5cf993a22bcedfe8c66dd9ae6536c1ee2db146ea
Author: aherbert <aherb...@apache.org>
AuthorDate: Fri May 17 14:31:40 2019 +0100
Fixed typo and updated deprecated generator.
---
.../commons/rng/examples/sampling/UniformSamplingVisualCheck.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/commons-rng-examples/examples-sampling/src/main/java/org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheck.java
b/commons-rng-examples/examples-sampling/src/main/java/org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheck.java
index 8875934..a912791 100644
---
a/commons-rng-examples/examples-sampling/src/main/java/org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheck.java
+++
b/commons-rng-examples/examples-sampling/src/main/java/org/apache/commons/rng/examples/sampling/UniformSamplingVisualCheck.java
@@ -26,14 +26,14 @@ import
org.apache.commons.rng.sampling.distribution.ContinuousSampler;
/**
* Creates 2D plot of sampling output.
- * It is a "manual" check that could help ensure that no artefacts
+ * It is a "manual" check that could help ensure that no artifacts
That was not a typo. ;-)
Sorry. I am using a British spell checker in my IDE.
I assume commons uses US English. I'll update my spell checker and revert.
* exist in some tiny region of the expected range, due to loss of
* accuracy, e.g. when porting C code based on 32-bits "float" to
* "Commons RNG" that uses Java "double" (64-bits).
*/
public class UniformSamplingVisualCheck {
/** RNG. */
- private final UniformRandomProvider rng =
RandomSource.create(RandomSource.XOR_SHIFT_1024_S);
+ private final UniformRandomProvider rng =
RandomSource.create(RandomSource.XOR_SHIFT_1024_S_PHI);
/** Samplers. */
private final ContinuousSampler[] samplers = new ContinuousSampler[] {
new ZigguratNormalizedGaussianSampler(rng),
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org