Class PoissonBounds

Object
org.apache.spark.util.random.PoissonBounds

public class PoissonBounds extends Object
Utility functions that help us determine bounds on adjusted sampling rate to guarantee exact sample sizes with high confidence when sampling with replacement.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getLowerBound(double s)
    Returns a lambda such that Pr[X > s] is very small, where X ~ Pois(lambda).
    static double
    getUpperBound(double s)
    Returns a lambda such that Pr[X < s] is very small, where X ~ Pois(lambda).

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PoissonBounds

      public PoissonBounds()
  • Method Details

    • getLowerBound

      public static double getLowerBound(double s)
      Returns a lambda such that Pr[X > s] is very small, where X ~ Pois(lambda).
      Parameters:
      s - (undocumented)
      Returns:
      (undocumented)
    • getUpperBound

      public static double getUpperBound(double s)
      Returns a lambda such that Pr[X < s] is very small, where X ~ Pois(lambda).

      Parameters:
      s - sample size
      Returns:
      (undocumented)