You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/11/13 00:12:51 UTC
[commons-rng] 02/07: Update
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-rng.git
commit ec52674d49351bdb271b6c0021148e65a726ced3
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Nov 12 22:02:22 2019 +0000
Update <source> example for the sampling index page.
Correct the formatting and switch to using the 'of' factory constructor.
---
commons-rng-sampling/src/site/xdoc/index.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-rng-sampling/src/site/xdoc/index.xml b/commons-rng-sampling/src/site/xdoc/index.xml
index 52f27ac..ccec820 100644
--- a/commons-rng-sampling/src/site/xdoc/index.xml
+++ b/commons-rng-sampling/src/site/xdoc/index.xml
@@ -44,10 +44,10 @@ import org.apache.commons.rng.sampling.distribution.ContinuousSampler;
import org.apache.commons.rng.sampling.distribution.MarsagliaNormalizedGaussianSampler;
public class NormalDeviates {
- private final ContinuousSampler normalizedGaussian;
+ private final ContinuousSampler normalizedGaussian;
public NormalDeviates(UniformRandomProvider rng) {
- normalizedGaussian = new MarsagliaNormalizedGaussianSampler(rng);
+ normalizedGaussian = MarsagliaNormalizedGaussianSampler.of(rng);
}
public double sample(double mean,