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

Definition at line 347 of file BayesianCalculator.cxx.

Public Member Functions

 PosteriorFunction (RooAbsReal &nll, RooRealVar &poi, RooArgList &nuisParams, RooAbsReal *prior=0, const char *integType=0, 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
 IBaseFunctionOneDim ()
 
virtual ~IBaseFunctionOneDim ()
 virtual destructor
 
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 Use the a pure virtual private method DoEval which must be implemented by sub-classes.
 

Private Member Functions

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

Private Attributes

double fError
 
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 = 0,
const char *  integType = 0,
double  norm = 1.0,
double  nllOffset = 0,
int  niter = 0 
)
inline

Definition at line 352 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 provate DoClone method

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 400 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 409 of file BayesianCalculator.cxx.

◆ Error()

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

Definition at line 405 of file BayesianCalculator.cxx.

Member Data Documentation

◆ fError

double RooStats::PosteriorFunction::fError
mutableprivate

Definition at line 457 of file BayesianCalculator.cxx.

◆ fFunctor

RooFunctor RooStats::PosteriorFunction::fFunctor
mutableprivate

Definition at line 448 of file BayesianCalculator.cxx.

◆ fIntegratorMultiDim

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

Definition at line 453 of file BayesianCalculator.cxx.

◆ fIntegratorOneDim

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

Definition at line 452 of file BayesianCalculator.cxx.

◆ fLikelihood

LikelihoodFunction RooStats::PosteriorFunction::fLikelihood
private

Definition at line 450 of file BayesianCalculator.cxx.

◆ fNorm

double RooStats::PosteriorFunction::fNorm
private

Definition at line 456 of file BayesianCalculator.cxx.

◆ fPoi

RooRealVar* RooStats::PosteriorFunction::fPoi
private

Definition at line 451 of file BayesianCalculator.cxx.

◆ fPriorFunc

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

Definition at line 449 of file BayesianCalculator.cxx.

◆ fXmax

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

Definition at line 455 of file BayesianCalculator.cxx.

◆ fXmin

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

Definition at line 454 of file BayesianCalculator.cxx.

  • roofit/roostats/src/BayesianCalculator.cxx