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 Summary
Constructors - 
Method Summary
Modifier 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
- 
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)
 
 
 -