You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/02/08 19:08:50 UTC

[commons-rng] branch master updated: Normalize to US English spelling.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new e3c86f9  Normalize to US English spelling.
e3c86f9 is described below

commit e3c86f9b4992f388cece39961472f43a6a6eeb7a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Feb 8 14:08:45 2021 -0500

    Normalize to US English spelling.
---
 .../jmh/sampling/distribution/PoissonSamplersPerformance.java       | 4 ++--
 .../commons/rng/examples/jmh/simple/SeedGenerationPerformance.java  | 6 +++---
 .../org/apache/commons/rng/examples/stress/StressTestCommand.java   | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/PoissonSamplersPerformance.java b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/PoissonSamplersPerformance.java
index 278b63d..1aa2394 100644
--- a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/PoissonSamplersPerformance.java
+++ b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/PoissonSamplersPerformance.java
@@ -549,7 +549,7 @@ public class PoissonSamplersPerformance {
          * Store the cumulative probability for all samples up to and including x.
          * This is F(x) = sum of p(X<=x).
          *
-         * <p>This table is initialised to store cumulative probabilities for x up to 2 * mean
+         * <p>This table is initialized to store cumulative probabilities for x up to 2 * mean
          * or 99.99% (whichever is larger).
          */
         private final double[] fx;
@@ -736,7 +736,7 @@ public class PoissonSamplersPerformance {
          * Store the cumulative probability for all samples up to and including x. This is
          * F(x) = sum of p(X<=x).
          *
-         * <p>This table is initialised to store cumulative probabilities for x up to 2 * mean
+         * <p>This table is initialized to store cumulative probabilities for x up to 2 * mean
          * or 99.99% (whichever is larger).
          */
         private final double[] cumulativeProbability;
diff --git a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/simple/SeedGenerationPerformance.java b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/simple/SeedGenerationPerformance.java
index 24a195e..d3c98df 100644
--- a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/simple/SeedGenerationPerformance.java
+++ b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/simple/SeedGenerationPerformance.java
@@ -126,7 +126,7 @@ public class SeedGenerationPerformance {
 
         /** No public construction. */
         private ThreadLocalRNG() {
-            // Do nothing. The seed could be initialised here.
+            // Do nothing. The seed could be initialized here.
         }
 
         @Override
@@ -158,7 +158,7 @@ public class SeedGenerationPerformance {
 
         /** No public construction. */
         private ThreadLocalSplitMix() {
-            // Do nothing. The seed could be initialised here.
+            // Do nothing. The seed could be initialized here.
         }
 
         @Override
@@ -190,7 +190,7 @@ public class SeedGenerationPerformance {
 
         /** No public construction. */
         private ThreadLocalSequence() {
-            // Do nothing. The seed could be initialised here.
+            // Do nothing. The seed could be initialized here.
         }
 
         @Override
diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
index 6ed4dd5..a2bd862 100644
--- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
+++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
@@ -597,7 +597,7 @@ class StressTestCommand implements Callable<Void> {
         private long nextReportTimestamp;
 
         /**
-         * Create a new instance. The total number of tasks must be initialised before use.
+         * Create a new instance. The total number of tasks must be initialized before use.
          *
          * @param parallelTasks The number of parallel tasks.
          */
@@ -802,7 +802,7 @@ class StressTestCommand implements Callable<Void> {
             Arrays.sort(sortedDurations, 0, completed);
 
             // Return median of small lists. If no tasks have finished this returns zero.
-            // as the durations is zero initialised.
+            // as the durations is zero initialized.
             if (completed < 4) {
                 return sortedDurations[completed / 2];
             }