java.lang.Object
org.elasticsearch.search.aggregations.bucket.sampler.random.FastGeometric

public class FastGeometric extends Object
Specialized class for randomly sampling values from the geometric distribution
  • Constructor Details

    • FastGeometric

      public FastGeometric(IntSupplier randomGen, double p)
      Parameters:
      randomGen - random integer supplier
      p - the probability of success, must be between (0.0-1.0)
  • Method Details

    • next

      public int next()
      Returns:
      The next random sample from the geometric distribution