#include <BinomialInterval.h>
Public Types | |
enum | tail_type { equal_tailed, lower_tailed, upper_tailed } |
Public Member Functions | |
double | alpha () const |
virtual void | calculate (const double successes, const double trials)=0 |
bool | contains (double rho) |
double | coverage_prob (const double rho, const int trials) |
void | dump (const int trials_min, const int trials_max) |
void | init (const double alpha, const tail_type t=equal_tailed) |
double | length () const |
double | lower () const |
virtual const char * | name () const =0 |
virtual bool | neyman (const int ntot, const int nrho, double *rho, double *x_l, double *x_r) |
void | scan_ntot (const double rho, const int ntot_min, const int ntot_max, double *ntot, double *prob) |
void | scan_rho (const int ntot, const int nrho, double *rho, double *prob) |
double | upper () const |
virtual | ~BinomialInterval ()=default |
Protected Member Functions | |
void | set (double l, double u) |
Protected Attributes | |
double | alpha_ |
double | alpha_min_ |
double | kappa2_ |
double | kappa_ |
double | lower_ |
tail_type | type_ |
double | upper_ |
Definition at line 18 of file BinomialInterval.h.
|
virtualdefault |
|
inline |
|
pure virtual |
Implemented in BinomialNoncentralInterval< Sorter >, BinomialNoncentralInterval< SterneSorter >, BinomialNoncentralInterval< FeldmanCousinsSorter >, and ClopperPearsonBinomialInterval.
Referenced by coverage_prob(), and dump().
bool BinomialInterval::contains | ( | double | rho | ) |
Definition at line 22 of file BinomialInterval.cc.
References lower_, lower_tailed, type_, upper_, and upper_tailed.
Referenced by coverage_prob().
double BinomialInterval::coverage_prob | ( | const double | rho, |
const int | trials | ||
) |
Definition at line 31 of file BinomialInterval.cc.
References calculate(), contains(), TtFullHadEvtBuilder_cfi::prob, and X.
Referenced by scan_ntot(), and scan_rho().
void BinomialInterval::dump | ( | const int | trials_min, |
const int | trials_max | ||
) |
Definition at line 60 of file BinomialInterval.cc.
References calculate(), lower_, gen::n, name(), AlCaHLTBitMon_QueryRunRegistry::string, upper_, and X.
Referenced by neyman().
void BinomialInterval::init | ( | const double | alpha, |
const tail_type | t = equal_tailed |
||
) |
|
inline |
|
inline |
|
pure virtual |
Implemented in ClopperPearsonBinomialInterval, FeldmanCousinsBinomialInterval, and SterneBinomialInterval.
Referenced by config.CFG::__str__(), validation.Sample::digest(), dump(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inlinevirtual |
Reimplemented in BinomialNoncentralInterval< Sorter >, BinomialNoncentralInterval< SterneSorter >, and BinomialNoncentralInterval< FeldmanCousinsSorter >.
Definition at line 70 of file BinomialInterval.h.
References dump().
void BinomialInterval::scan_ntot | ( | const double | rho, |
const int | ntot_min, | ||
const int | ntot_max, | ||
double * | ntot, | ||
double * | prob | ||
) |
Definition at line 51 of file BinomialInterval.cc.
References coverage_prob(), mps_fire::i, and nt.
void BinomialInterval::scan_rho | ( | const int | ntot, |
const int | nrho, | ||
double * | rho, | ||
double * | prob | ||
) |
Definition at line 44 of file BinomialInterval.cc.
References coverage_prob(), and mps_fire::i.
|
inlineprotected |
|
inline |
|
protected |
Definition at line 84 of file BinomialInterval.h.
Referenced by alpha(), ClassImp(), and BinomialNoncentralInterval< FeldmanCousinsSorter >::find_rho_set().
|
protected |
Definition at line 86 of file BinomialInterval.h.
Referenced by ClopperPearsonBinomialInterval::calculate(), and ClassImp().
|
protected |
Definition at line 88 of file BinomialInterval.h.
Referenced by ClassImp().
|
protected |
Definition at line 87 of file BinomialInterval.h.
Referenced by ClassImp().
|
protected |
Definition at line 90 of file BinomialInterval.h.
Referenced by ClopperPearsonBinomialInterval::calculate(), BinomialNoncentralInterval< FeldmanCousinsSorter >::calculate(), contains(), dump(), length(), and lower().
|
protected |
Definition at line 85 of file BinomialInterval.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), ClassImp(), contains(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and Modules.ESPrefer::nameInProcessDesc_().
|
protected |
Definition at line 91 of file BinomialInterval.h.
Referenced by ClopperPearsonBinomialInterval::calculate(), BinomialNoncentralInterval< FeldmanCousinsSorter >::calculate(), contains(), dump(), length(), and upper().