Class AhrensDieterMarsagliaTsangGammaSampler

    • Constructor Detail

      • AhrensDieterMarsagliaTsangGammaSampler

        public AhrensDieterMarsagliaTsangGammaSampler​(UniformRandomProvider rng,
                                                      double alpha,
                                                      double theta)
        This instance delegates sampling. Use the factory method of(UniformRandomProvider, double, double) to create an optimal sampler.
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        alpha - Alpha parameter of the distribution (this is a shape parameter).
        theta - Theta parameter of the distribution (this is a scale parameter).
        Throws:
        IllegalArgumentException - if alpha <= 0 or theta <= 0