ContinuousSampler
LogNormalSampler
instead.@Deprecated public class BoxMullerLogNormalSampler extends SamplerBase implements ContinuousSampler
BoxMullerNormalizedGaussianSampler
as the underlying sampler.
Sampling uses UniformRandomProvider.nextDouble()
.
Constructor | Description |
---|---|
BoxMullerLogNormalSampler(org.apache.commons.rng.UniformRandomProvider rng,
double scale,
double shape) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
double |
sample() |
Deprecated.
Creates a sample.
|
java.lang.String |
toString() |
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
nextDouble, nextInt, nextInt, nextLong
public BoxMullerLogNormalSampler(org.apache.commons.rng.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.java.lang.IllegalArgumentException
- if scale < 0
or shape <= 0
.public double sample()
sample
in interface ContinuousSampler
public java.lang.String toString()
toString
in class SamplerBase
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.