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, nextLong
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
samples, samples
public 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 ContinuousSampler
public String toString()
toString
in class SamplerBase
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.