Skip to content

Commit

Permalink
Fix javadoc typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jul 22, 2020
1 parent 073ad90 commit d4a64cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/gr/james/sampling/ChaoSampling.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Implementation of the algorithm by Chao in <b>A general purpose unequal probability sampling plan</b>.
* <p>
* 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.
* <p>
* This implementation throws {@link StreamOverflowException} if the sum of the weights of the items feeded is
* {@link Double#POSITIVE_INFINITY}.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gr/james/sampling/EfraimidisSampling.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Implementation of the algorithm by Efraimidis and Spirakis in <b>Weighted random sampling with a reservoir</b>.
* <p>
* 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.
* <p>
* This implementation never throws {@link StreamOverflowException}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Implementation of the algorithm by Ohlsson in <b>Sequential Poisson Sampling</b>.
* <p>
* 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.
* <p>
* This implementation never throws {@link StreamOverflowException}.
Expand Down

0 comments on commit d4a64cd

Please sign in to comment.