Class LogNormalSampler

    • Field Detail

      • mu

        private final double mu
        Mean of the natural logarithm of the distribution values.
      • sigma

        private final double sigma
        Standard deviation of the natural logarithm of the distribution values.
    • Constructor Detail

      • LogNormalSampler

        public LogNormalSampler​(NormalizedGaussianSampler gaussian,
                                double mu,
                                double sigma)
        Parameters:
        gaussian - N(0,1) generator.
        mu - Mean of the natural logarithm of the distribution values.
        sigma - Standard deviation of the natural logarithm of the distribution values.
        Throws:
        java.lang.IllegalArgumentException - if sigma <= 0.
      • LogNormalSampler

        private LogNormalSampler​(UniformRandomProvider rng,
                                 LogNormalSampler source)
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        source - Source to copy.