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 2018/01/31 02:29:01 UTC

commons-rng git commit: Unnecessary label.

Repository: commons-rng
Updated Branches:
  refs/heads/master 9672beba8 -> 8fbd77d68


Unnecessary label.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/8fbd77d6
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/8fbd77d6
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/8fbd77d6

Branch: refs/heads/master
Commit: 8fbd77d68c663cfae59f231e987a863a3f4add0f
Parents: 9672beb
Author: Gilles <er...@apache.org>
Authored: Wed Jan 31 03:28:23 2018 +0100
Committer: Gilles <er...@apache.org>
Committed: Wed Jan 31 03:28:23 2018 +0100

----------------------------------------------------------------------
 .../sampling/distribution/MarsagliaNormalizedGaussianSampler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/8fbd77d6/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.java
index ef1f042..626ba98 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.java
@@ -45,7 +45,7 @@ public class MarsagliaNormalizedGaussianSampler
     public double sample() {
         if (Double.isNaN(nextGaussian)) {
             // Rejection scheme for selecting a pair that lies within the unit circle.
-            SAMPLE: while (true) {
+            while (true) {
                 // Generate a pair of numbers within [-1 , 1).
                 final double x = 2 * nextDouble() - 1;
                 final double y = 2 * nextDouble() - 1;