31 int type = (fSubtractMLE) ? 0 : 2;
34 if ( &pdf == fNullProfile.GetPdf() )
35 return fNullProfile.EvaluateProfileLikelihood(type, data, poi);
36 else if (&pdf == fAltProfile.GetPdf() )
37 return fAltProfile.EvaluateProfileLikelihood(type, data, poi);
39 oocoutE((
TObject*)
NULL,
InputArguments) <<
"RatioOfProfiledLikelihoods::ProfileLikelihood - invalid pdf used for computing the profiled likelihood - return NaN"
51 int type = (fSubtractMLE) ? 0 : 2;
54 double nullNLL = fNullProfile.EvaluateProfileLikelihood(type, data, nullParamsOfInterest);
55 const RooArgSet *nullset = fNullProfile.GetDetailedOutput();
58 double altNLL = fAltProfile.EvaluateProfileLikelihood(type, data, *fAltPOI);
59 const RooArgSet *altset = fAltProfile.GetDetailedOutput();
61 if (fDetailedOutput !=
NULL) {
62 delete fDetailedOutput;
63 fDetailedOutput =
NULL;
65 if (fDetailedOutputEnabled) {
71 fDetailedOutput->addOwned(*cloneVar);
76 fDetailedOutput->addOwned(*cloneVar);
88 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
virtual const char * GetName() const
Returns name of object.
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...