Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooStats::PosteriorFunction Class Reference

Definition at line 346 of file BayesianCalculator.cxx.

Public Member Functions

 PosteriorFunction (RooAbsReal &nll, RooRealVar &poi, RooArgList &nuisParams, RooAbsReal *prior=nullptr, const char *integType=nullptr, double norm=1.0, double nllOffset=0, int niter=0)
 
ROOT::Math::IGenFunctionClone () const override
 Clone a function.
 
double Error () const
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim
virtual ~IBaseFunctionOneDim ()=default
 
virtual bool HasGradient () const
 
double operator() (const double *x) const
 Evaluate the function at a point x[].
 
double operator() (double x) const
 Evaluate the function at a point x.
 

Private Member Functions

double DoEval (double x) const override
 implementation of the evaluation function. Must be implemented by derived classes
 

Private Attributes

double fError = 0
 
RooFunctor fFunctor
 
std::unique_ptr< ROOT::Math::IntegratorMultiDimfIntegratorMultiDim
 
std::unique_ptr< ROOT::Math::IntegratorfIntegratorOneDim
 
LikelihoodFunction fLikelihood
 
double fNorm
 
RooRealVarfPoi
 
std::shared_ptr< RooFunctorfPriorFunc
 
std::vector< doublefXmax
 
std::vector< doublefXmin
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IBaseFunctionOneDim
typedef IBaseFunctionOneDim BaseFunc
 
Inheritance diagram for RooStats::PosteriorFunction:
[legend]

Constructor & Destructor Documentation

◆ PosteriorFunction()

RooStats::PosteriorFunction::PosteriorFunction ( RooAbsReal nll,
RooRealVar poi,
RooArgList nuisParams,
RooAbsReal prior = nullptr,
const char *  integType = nullptr,
double  norm = 1.0,
double  nllOffset = 0,
int  niter = 0 
)
inline

Definition at line 351 of file BayesianCalculator.cxx.

Member Function Documentation

◆ Clone()

ROOT::Math::IGenFunction * RooStats::PosteriorFunction::Clone ( ) const
inlineoverridevirtual

Clone a function.

Each derived class will implement their version of the private DoClone method.

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 398 of file BayesianCalculator.cxx.

◆ DoEval()

double RooStats::PosteriorFunction::DoEval ( double  x) const
inlineoverrideprivatevirtual

implementation of the evaluation function. Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 407 of file BayesianCalculator.cxx.

◆ Error()

double RooStats::PosteriorFunction::Error ( ) const
inline

Definition at line 403 of file BayesianCalculator.cxx.

Member Data Documentation

◆ fError

double RooStats::PosteriorFunction::fError = 0
mutableprivate

Definition at line 453 of file BayesianCalculator.cxx.

◆ fFunctor

RooFunctor RooStats::PosteriorFunction::fFunctor
mutableprivate

Definition at line 444 of file BayesianCalculator.cxx.

◆ fIntegratorMultiDim

std::unique_ptr<ROOT::Math::IntegratorMultiDim> RooStats::PosteriorFunction::fIntegratorMultiDim
private

Definition at line 449 of file BayesianCalculator.cxx.

◆ fIntegratorOneDim

std::unique_ptr<ROOT::Math::Integrator> RooStats::PosteriorFunction::fIntegratorOneDim
private

Definition at line 448 of file BayesianCalculator.cxx.

◆ fLikelihood

LikelihoodFunction RooStats::PosteriorFunction::fLikelihood
private

Definition at line 446 of file BayesianCalculator.cxx.

◆ fNorm

double RooStats::PosteriorFunction::fNorm
private

Definition at line 452 of file BayesianCalculator.cxx.

◆ fPoi

RooRealVar* RooStats::PosteriorFunction::fPoi
private

Definition at line 447 of file BayesianCalculator.cxx.

◆ fPriorFunc

std::shared_ptr<RooFunctor> RooStats::PosteriorFunction::fPriorFunc
mutableprivate

Definition at line 445 of file BayesianCalculator.cxx.

◆ fXmax

std::vector<double> RooStats::PosteriorFunction::fXmax
private

Definition at line 451 of file BayesianCalculator.cxx.

◆ fXmin

std::vector<double> RooStats::PosteriorFunction::fXmin
private

Definition at line 450 of file BayesianCalculator.cxx.

  • roofit/roostats/src/BayesianCalculator.cxx