Class BoxMullerLogNormalSampler
java.lang.Object
org.apache.commons.rng.sampling.distribution.SamplerBase
org.apache.commons.rng.sampling.distribution.BoxMullerLogNormalSampler
- All Implemented Interfaces:
ContinuousSampler
Deprecated.
Sampling from a
log-normal distribution.
Uses
BoxMullerNormalizedGaussianSampler
as the underlying sampler.
Sampling uses UniformRandomProvider.nextDouble()
.
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoxMullerLogNormalSampler
(UniformRandomProvider rng, double mu, double sigma) Deprecated. -
Method Summary
Methods inherited from class org.apache.commons.rng.sampling.distribution.SamplerBase
nextDouble, nextInt, nextInt, nextLong
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.rng.sampling.distribution.ContinuousSampler
samples, samples
-
Field Details
-
sampler
Deprecated.Delegate.
-
-
Constructor Details
-
BoxMullerLogNormalSampler
Deprecated.- Parameters:
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.- Throws:
IllegalArgumentException
- ifsigma <= 0
.
-
-
Method Details
-
sample
public double sample()Deprecated.Creates adouble
sample.- Specified by:
sample
in interfaceContinuousSampler
- Returns:
- a sample.
-
toString
Deprecated.- Overrides:
toString
in classSamplerBase
-
LogNormalSampler
instead.