public class BoxMullerLogNormalSampler extends SamplerBase implements ContinuousSampler
| Constructor and Description |
|---|
BoxMullerLogNormalSampler(UniformRandomProvider rng,
double scale,
double shape) |
| Modifier and Type | Method and Description |
|---|---|
double |
sample()
Creates a sample.
|
String |
toString() |
nextDouble, nextInt, nextIntpublic BoxMullerLogNormalSampler(UniformRandomProvider rng, double scale, double shape)
rng - Generator of uniformly distributed random numbers.scale - Scale of the Log normal distribution.shape - Shape of the Log normal distribution.public double sample()
sample in interface ContinuousSamplerpublic String toString()
toString in class SamplerBaseCopyright © 2016 The Apache Software Foundation. All rights reserved.