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 use LogNormalSampler instead.
Sampling from a log-normal distribution. Uses BoxMullerNormalizedGaussianSampler as the underlying sampler.

Sampling uses UniformRandomProvider.nextDouble().

Since:
1.0
  • Field Details

  • Constructor Details

    • BoxMullerLogNormalSampler

      public BoxMullerLogNormalSampler(UniformRandomProvider rng, double mu, double sigma)
      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 - if sigma <= 0.
  • Method Details