Class BoxMullerGaussianSampler

java.lang.Object
org.apache.commons.rng.sampling.distribution.SamplerBase
org.apache.commons.rng.sampling.distribution.BoxMullerGaussianSampler
All Implemented Interfaces:
ContinuousSampler

@Deprecated public class BoxMullerGaussianSampler extends SamplerBase implements ContinuousSampler
Deprecated.
Since version 1.1. Please use BoxMullerNormalizedGaussianSampler and GaussianSampler instead.
Box-Muller algorithm for sampling from a Gaussian distribution.

Sampling uses UniformRandomProvider.nextDouble().

Since:
1.0
  • Field Details

    • nextGaussian

      private double nextGaussian
      Deprecated.
      Next gaussian.
    • mean

      private final double mean
      Deprecated.
      Mean.
    • standardDeviation

      private final double standardDeviation
      Deprecated.
      standardDeviation.
    • rng

      private final UniformRandomProvider rng
      Deprecated.
      Underlying source of randomness.
  • Constructor Details

    • BoxMullerGaussianSampler

      public BoxMullerGaussianSampler(UniformRandomProvider rng, double mean, double standardDeviation)
      Deprecated.
      Parameters:
      rng - Generator of uniformly distributed random numbers.
      mean - Mean of the Gaussian distribution.
      standardDeviation - Standard deviation of the Gaussian distribution.
      Throws:
      IllegalArgumentException - if standardDeviation <= 0
  • Method Details