Class ZigguratSampler.Exponential

    • Method Detail

      • sample

        public double sample()
        Creates a sample.
        Returns:
        a sample.
      • withUniformRandomProvider

        public ZigguratSampler.Exponential withUniformRandomProvider​(UniformRandomProvider rng)
        Create a new instance of the sampler with the same underlying state using the given uniform random provider as the source of randomness.
        Parameters:
        rng - Generator of uniformly distributed random numbers.
        Returns:
        the sampler