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:
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionBoxMullerLogNormalSampler(UniformRandomProvider rng, double mu, double sigma) Deprecated.Create an instance. -
Method Summary
Methods inherited from class SamplerBase
nextDouble, nextInt, nextInt, nextLongMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContinuousSampler
samples, samples
-
Constructor Details
-
BoxMullerLogNormalSampler
Deprecated.Create an instance.- 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
Deprecated.Creates adoublesample.- Specified by:
samplein interfaceContinuousSampler- Returns:
- a sample.
-
toString
-
LogNormalSamplerinstead.