DataType
- The type of data to compute the confidence interval over.public interface ConfidenceIntervalEvaluator<DataType>
Modifier and Type | Method and Description |
---|---|
ConfidenceInterval |
computeConfidenceInterval(DataType data,
double confidence)
Computes a confidence interval for a given dataset and confidence (power)
level
|
ConfidenceInterval |
computeConfidenceInterval(double mean,
double variance,
int numSamples,
double confidence)
Computes the confidence interval given the mean and variance of
the samples, number of samples, and corresponding confidence interval
|
ConfidenceInterval computeConfidenceInterval(DataType data, double confidence)
data
- Dataset to use to compute the ConfidenceIntervalconfidence
- Confidence level (power, 1-pvalue) for the ConfidenceInterval,
must be on the interval (0,1]ConfidenceInterval computeConfidenceInterval(double mean, double variance, int numSamples, double confidence)
mean
- Mean of the distribution.variance
- Variance of the distribution.numSamples
- Number of samples in the underlying dataconfidence
- Confidence value to assume for the ConfidenceInterval