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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).
-
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)
-