33 int type = (fSubtractMLE) ? 0 : 2;
36 if ( &pdf == fNullProfile.GetPdf() )
37 return fNullProfile.EvaluateProfileLikelihood(type, data, poi);
38 else if (&pdf == fAltProfile.GetPdf() )
39 return fAltProfile.EvaluateProfileLikelihood(type, data, poi);
41 oocoutE((
TObject*)
NULL,
InputArguments) <<
"RatioOfProfiledLikelihoods::ProfileLikelihood - invalid pdf used for computing the profiled likelihood - return NaN"
53 int type = (fSubtractMLE) ? 0 : 2;
56 double nullNLL = fNullProfile.EvaluateProfileLikelihood(type, data, nullParamsOfInterest);
57 const RooArgSet *nullset = fNullProfile.GetDetailedOutput();
60 double altNLL = fAltProfile.EvaluateProfileLikelihood(type, data, *fAltPOI);
61 const RooArgSet *altset = fAltProfile.GetDetailedOutput();
63 if (fDetailedOutput !=
NULL) {
64 delete fDetailedOutput;
65 fDetailedOutput =
NULL;
67 if (fDetailedOutputEnabled) {
73 fDetailedOutput->addOwned(*cloneVar);
78 fDetailedOutput->addOwned(*cloneVar);
90 return nullNLL -altNLL;
virtual const char * GetTitle() const
Returns title of object.
Iterator abstract base class.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
TIterator * createIterator(Bool_t dir=kIterForward) const
Double_t getVal(const RooArgSet *set=0) const
RooRealVar represents a fundamental (non-derived) real valued object.
virtual const char * GetName() const
Returns name of object.
RooAbsData is the common abstract base class for binned and unbinned datasets.
static void SetAlwaysReuseNLL(Bool_t flag)
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullParamsOfInterest)
evaluate the ratio of profile likelihood
Mother of all ROOT objects.
static Bool_t fgAlwaysReuseNll
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t ProfiledLikelihood(RooAbsData &data, RooArgSet &poi, RooAbsPdf &pdf)
returns -logL(poi, conditonal MLE of nuisance params) subtract off the global MLE or not depending on...