Class BoxMullerGaussianSampler

    • Field Detail

      • nextGaussian

        private double nextGaussian
        Deprecated.
        Next gaussian.
      • mean

        private final double mean
        Deprecated.
        Mean.
      • standardDeviation

        private final double standardDeviation
        Deprecated.
        standardDeviation.
    • Constructor Detail

      • 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:
        java.lang.IllegalArgumentException - if standardDeviation <= 0
    • Method Detail

      • sample

        public double sample()
        Deprecated.
        Creates a double sample.
        Specified by:
        sample in interface ContinuousSampler
        Returns:
        a sample.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class SamplerBase