Class KunduGupta2007

  • All Implemented Interfaces:
    RandomGammaGenerator, RandomNumberGenerator, Seedable

    public class KunduGupta2007
    extends Object
    implements RandomGammaGenerator
    Kundu-Gupta propose a very convenient way to generate gamma random variables using generalized exponential distribution, when the shape parameter lies between 0 and 1. This implementation is Algorithm 3 in the reference.
    • Constructor Detail

      • KunduGupta2007

        public KunduGupta2007​(double k,
                              double theta,
                              RandomLongGenerator uniform)
        Constructs a random number generator to sample from the gamma distribution.
        Parameters:
        k - the shape parameter
        theta - the scale parameter
        uniform - a uniform random number generator
      • KunduGupta2007

        public KunduGupta2007​(double k,
                              double theta)
        Constructs a random number generator to sample from the gamma distribution.
        Parameters:
        k - the shape parameter
        theta - the scale parameter
    • Method Detail

      • seed

        public void seed​(long... seeds)
        Description copied from interface: Seedable
        Seed the random number/vector/scenario generator to produce repeatable experiments.
        Specified by:
        seed in interface Seedable
        Parameters:
        seeds - the seeds