3 #include "Math/PdfFuncMathCore.h"
4 #include "Math/QuantFuncMathCore.h"
6 #if (defined (STANDALONE) or defined (__CINT__) )
18 kappa_ = ROOT::Math::normal_quantile(1 - alpha/2, 1);
34 for (
int X = 0;
X <= trials; ++
X) {
38 prob += ROOT::Math::binomial_pdf(
X, p, trials);
45 for (
int i = 0;
i < nrho; ++
i) {
46 rho[
i] = double(
i)/nrho;
52 double* ntot,
double*
prob) {
53 for (
int i = 0;
i < ntot_max - ntot_min + 1; ++
i) {
54 int nt =
i + ntot_min;
62 FILE* fdump = fopen(fn.c_str(),
"wt");
64 for (
int n = trials_min;
n <= trials_max; ++
n) {
65 for (
int X = 0;
X <=
n;
X++) {
virtual void calculate(const double successes, const double trials)=0
virtual const char * name() const =0
void init(const double alpha, const tail_type t=equal_tailed)
void scan_rho(const int ntot, const int nrho, double *rho, double *prob)
double coverage_prob(const double rho, const int trials)
bool contains(double rho)
void scan_ntot(const double rho, const int ntot_min, const int ntot_max, double *ntot, double *prob)
void dump(const int trials_min, const int trials_max)