CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/PhysicsTools/RooStatsCms/interface/ClopperPearsonBinomialInterval.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_RooStatsCms_ClopperPearsonBinomialInterval_h
00002 #define PhysicsTools_RooStatsCms_ClopperPearsonBinomialInterval_h
00003 /* \class ClopperPearsonBinomialInterval
00004  *
00005  * \author Jordan Tucker
00006  *
00007  * integration in CMSSW: Luca Lista
00008  *
00009  */
00010 
00011 #if (defined (STANDALONE) or defined (__CINT__) )
00012 #include "BinomialInterval.h"
00013 #else
00014 #include "PhysicsTools/RooStatsCms/interface/BinomialInterval.h"
00015 #endif
00016 
00017 // A class to implement the calculation of intervals for the binomial
00018 // parameter rho. The bulk of the work is done by derived classes that
00019 // implement calculate() appropriately.
00020 
00021 class ClopperPearsonBinomialInterval : public BinomialInterval {
00022  public:
00023   void calculate(const double successes, const double trials);
00024   const char* name() const { return "Clopper-Pearson"; }
00025 
00026 #if (defined (STANDALONE) or defined (__CINT__) )
00027 ClassDef(ClopperPearsonBinomialInterval,1)
00028 #endif
00029 };
00030 
00031 #endif