Class BoxMullerLogNormalSampler
- java.lang.Object
-
- org.apache.commons.rng.sampling.distribution.SamplerBase
-
- org.apache.commons.rng.sampling.distribution.BoxMullerLogNormalSampler
-
- All Implemented Interfaces:
ContinuousSampler
@Deprecated public class BoxMullerLogNormalSampler extends SamplerBase implements ContinuousSampler
Deprecated.Since version 1.1. Please useLogNormalSamplerinstead.Sampling from a log-normal distribution. UsesBoxMullerNormalizedGaussianSampleras the underlying sampler.Sampling uses
UniformRandomProvider.nextDouble().- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BoxMullerLogNormalSampler(UniformRandomProvider rng, double scale, double shape)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublesample()Deprecated.Creates a sample.StringtoString()Deprecated.-
Methods inherited from class org.apache.commons.rng.sampling.distribution.SamplerBase
nextDouble, nextInt, nextInt, nextLong
-
-
-
-
Constructor Detail
-
BoxMullerLogNormalSampler
public BoxMullerLogNormalSampler(UniformRandomProvider rng, double scale, double shape)
Deprecated.- Parameters:
rng- Generator of uniformly distributed random numbers.scale- Scale of the log-normal distribution.shape- Shape of the log-normal distribution.- Throws:
IllegalArgumentException- ifscale < 0orshape <= 0.
-
-
Method Detail
-
sample
public double sample()
Deprecated.Creates a sample.- Specified by:
samplein interfaceContinuousSampler- Returns:
- a sample.
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classSamplerBase
-
-