Class BinomialConfidence

java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.analysis.BinomialConfidence

public class BinomialConfidence extends Object
Calculate Clopper-Pearson interval using 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 size
      alpha - - the confidence, for example for 95%, provide an alpha of 0.05.
      Returns:
      a double[] with the interval boundaries at indices 0 and 1.