LogNormalSampler instead.@Deprecated public class BoxMullerLogNormalSampler extends SamplerBase implements ContinuousSampler
BoxMullerNormalizedGaussianSampler as the underlying sampler.
Sampling uses UniformRandomProvider.nextDouble().
| Constructor and Description |
|---|
BoxMullerLogNormalSampler(UniformRandomProvider rng,
double mu,
double sigma)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double |
sample()
Deprecated.
Creates a
double sample. |
String |
toString()
Deprecated.
|
nextDouble, nextInt, nextInt, nextLongclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsamples, samplespublic BoxMullerLogNormalSampler(UniformRandomProvider rng, double mu, double sigma)
rng - Generator of uniformly distributed random numbers.mu - Mean of the natural logarithm of the distribution values.sigma - Standard deviation of the natural logarithm of the distribution values.IllegalArgumentException - if sigma <= 0.public double sample()
double sample.sample in interface ContinuousSamplerpublic String toString()
toString in class SamplerBaseCopyright © 2016–2022 The Apache Software Foundation. All rights reserved.