public final class BinomialBoundsN extends Object
Modifier and Type | Method and Description |
---|---|
static double |
getLowerBound(long numSamples,
double theta,
int numSDev,
boolean noDataSeen)
Returns the approximate lower bound value
|
static double |
getUpperBound(long numSamples,
double theta,
int numSDev,
boolean noDataSeen)
Returns the approximate upper bound value
|
public static double getLowerBound(long numSamples, double theta, int numSDev, boolean noDataSeen)
numSamples
- the number of samples in the sample settheta
- the sampling probabilitynumSDev
- the number of "standard deviations" from the mean for the tail bounds.
This must be an integer value of 1, 2 or 3.noDataSeen
- this is normally false. However, in the case where you have zero samples
and a theta < 1.0, this flag enables the distinction between a virgin case when no actual
data has been seen and the case where the estimate may be zero but an upper error bound may
still exist.public static double getUpperBound(long numSamples, double theta, int numSDev, boolean noDataSeen)
numSamples
- the number of samples in the sample settheta
- the sampling probabilitynumSDev
- the number of "standard deviations" from the mean for the tail bounds.
This must be an integer value of 1, 2 or 3.noDataSeen
- this is normally false. However, in the case where you have zero samples
and a theta < 1.0, this flag enables the distinction between a virgin case when no actual
data has been seen and the case where the estimate may be zero but an upper error bound may
still exist.Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.