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-statistics.git
The following commit(s) were added to refs/heads/master by this push:
new e8ff2b6 Comment typo
e8ff2b6 is described below
commit e8ff2b6d128e6878db51cf39cc6583f26c481a33
Author: aherbert <[email protected]>
AuthorDate: Wed Nov 30 15:01:59 2022 +0000
Comment typo
---
.../org/apache/commons/statistics/distribution/ParetoDistribution.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/ParetoDistribution.java
b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/ParetoDistribution.java
index ce4415b..7c059f0 100644
---
a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/ParetoDistribution.java
+++
b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/ParetoDistribution.java
@@ -302,7 +302,7 @@ public final class ParetoDistribution extends
AbstractContinuousDistribution {
// Small shape should sample using p in (0, 1] (upper bound)
// Note: For small shape the input RNG is also wrapped to use nextLong
as the source of
// randomness; this ensures the nextDouble method uses the interface
output of [0, 1).
- // Commons RNG v1.6 uses nextLong and will not be affected changes to
nextDouble.
+ // Commons RNG v1.6 uses nextLong and will not be affected by changes
to nextDouble.
final UniformRandomProvider wrappedRng = shape >= 1 ? new
InvertedRNG(rng) : rng::nextLong;
return InverseTransformParetoSampler.of(wrappedRng, scale,
shape)::sample;
}