From d4a64cd749894f506bbebb3dbb88c1305932ee0f Mon Sep 17 00:00:00 2001 From: Giorgos Stamatelatos Date: Thu, 23 Jul 2020 01:20:46 +0300 Subject: [PATCH] Fix javadoc typos --- src/main/java/gr/james/sampling/ChaoSampling.java | 2 +- src/main/java/gr/james/sampling/EfraimidisSampling.java | 2 +- src/main/java/gr/james/sampling/SequentialPoissonSampling.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/gr/james/sampling/ChaoSampling.java b/src/main/java/gr/james/sampling/ChaoSampling.java index 487be67..86ab711 100644 --- a/src/main/java/gr/james/sampling/ChaoSampling.java +++ b/src/main/java/gr/james/sampling/ChaoSampling.java @@ -6,7 +6,7 @@ * Implementation of the algorithm by Chao in A general purpose unequal probability sampling plan. *

* According to this algorithm, the probability of an item to be in the final sample is proportional to its relative - * weight. Weights are the range (0,+Inf), otherwise an {@link IllegalWeightException} is thrown. + * weight. Weights must be in the range (0,+Inf), otherwise an {@link IllegalWeightException} is thrown. *

* This implementation throws {@link StreamOverflowException} if the sum of the weights of the items feeded is * {@link Double#POSITIVE_INFINITY}. diff --git a/src/main/java/gr/james/sampling/EfraimidisSampling.java b/src/main/java/gr/james/sampling/EfraimidisSampling.java index 3517635..f71a14d 100644 --- a/src/main/java/gr/james/sampling/EfraimidisSampling.java +++ b/src/main/java/gr/james/sampling/EfraimidisSampling.java @@ -6,7 +6,7 @@ * Implementation of the algorithm by Efraimidis and Spirakis in Weighted random sampling with a reservoir. *

* According to this algorithm, the relative weight determines the probability that the item is selected in each of the - * explicit or implicit item selections of the sampling procedure. Weights are the range (0,+Inf), otherwise an + * explicit or implicit item selections of the sampling procedure. Weights must be in the range (0,+Inf), otherwise an * {@link IllegalWeightException} is thrown. *

* This implementation never throws {@link StreamOverflowException}. diff --git a/src/main/java/gr/james/sampling/SequentialPoissonSampling.java b/src/main/java/gr/james/sampling/SequentialPoissonSampling.java index 75d3071..f7c8fee 100644 --- a/src/main/java/gr/james/sampling/SequentialPoissonSampling.java +++ b/src/main/java/gr/james/sampling/SequentialPoissonSampling.java @@ -6,7 +6,7 @@ * Implementation of the algorithm by Ohlsson in Sequential Poisson Sampling. *

* Weighted are not being assigned a particular meaning or have physical interpretation but the resulting inclusion - * probabilities are an approximation of the exact model ({@link ChaoSampling}). Weights are the range (0,+Inf), + * probabilities are an approximation of the exact model ({@link ChaoSampling}). Weights must be in the range (0,+Inf), * otherwise an {@link IllegalWeightException} is thrown. *

* This implementation never throws {@link StreamOverflowException}.