public class BoxMullerGaussianSampler extends SamplerBase implements ContinuousSampler
| Constructor and Description |
|---|
BoxMullerGaussianSampler(UniformRandomProvider rng,
double mean,
double standardDeviation) |
| Modifier and Type | Method and Description |
|---|---|
double |
sample()
Creates a sample.
|
String |
toString() |
nextDouble, nextInt, nextIntpublic BoxMullerGaussianSampler(UniformRandomProvider rng, double mean, double standardDeviation)
rng - Generator of uniformly distributed random numbers.mean - Mean of the Gaussian distribution.standardDeviation - Standard deviation of the Gaussian distribution.public double sample()
sample in interface ContinuousSamplerpublic String toString()
toString in class SamplerBaseCopyright © 2016 The Apache Software Foundation. All rights reserved.