Class AhrensDieterMarsagliaTsangGammaSampler.BaseGammaSampler

    • Field Detail

      • alpha

        protected final double alpha
        The alpha parameter. This is a shape parameter.
      • theta

        protected final double theta
        The theta parameter. This is a scale parameter.
    • Constructor Detail

      • BaseGammaSampler

        BaseGammaSampler​(UniformRandomProvider rng,
                         double alpha,
                         double theta)
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        alpha - Alpha parameter of the distribution.
        theta - Theta parameter of the distribution.
        Throws:
        java.lang.IllegalArgumentException - if alpha <= 0 or theta <= 0
      • BaseGammaSampler

        private BaseGammaSampler​(double alpha,
                                 double theta,
                                 UniformRandomProvider rng)
        Parameters:
        alpha - Alpha parameter of the distribution.
        theta - Theta parameter of the distribution.
        rng - Generator of uniformly distributed random numbers.
    • Method Detail

      • toString

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