Package org.apache.spark.util.random
Class PoissonBounds
Object
org.apache.spark.util.random.PoissonBounds
Utility functions that help us determine bounds on adjusted sampling rate to guarantee exact
 sample sizes with high confidence when sampling with replacement.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic doublegetLowerBound(double s) Returns a lambda such that Pr[X > s] is very small, where X ~ Pois(lambda).static doublegetUpperBound(double s) Returns a lambda such that Pr[X < s] is very small, where X ~ Pois(lambda).
- 
Constructor Details- 
PoissonBoundspublic PoissonBounds()
 
- 
- 
Method Details- 
getLowerBoundpublic 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)
 
- 
getUpperBoundpublic 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)
 
 
-