Class BinomialConfidence
java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.analysis.BinomialConfidence
Calculate Clopper-Pearson interval using beta-distribution
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]calcClopperPearsonInt(double successes, double sampleSize, double alpha) Calculate Clopper-Pearson interval using the beta-distribution.
-
Method Details
-
calcClopperPearsonInt
public static double[] calcClopperPearsonInt(double successes, double sampleSize, double alpha) Calculate Clopper-Pearson interval using the beta-distribution.- Parameters:
successes- - the number of successes in the experiment.sampleSize- - the sample sizealpha- - the confidence, for example for 95%, provide an alpha of 0.05.- Returns:
- a double[] with the interval boundaries at indices 0 and 1.
-