|
ROOT
Reference Guide |
|
Go to the documentation of this file.
11 #ifndef ROOSTATS_BayesianCalculator
12 #define ROOSTATS_BayesianCalculator
48 const RooArgSet* nuisanceParameters = 0 );
void SetBrfPrecision(double precision)
virtual void SetNuisanceParameters(const RooArgSet &set)
virtual void SetModel(const ModelConfig &model)
set the model to use The model pdf, prior pdf, parameter of interest and nuisances will be taken acco...
RooAbsData is the common abstract base class for binned and unbinned datasets.
void ComputeIntervalFromApproxPosterior(double c1, double c2) const
compute the interval using the approximate posterior function
IntervalCalculator is an interface class for a tools which produce RooStats ConfIntervals.
virtual void SetPriorPdf(RooAbsPdf &pdf)
virtual void SetData(RooAbsData &data)
Set the DataSet ( add to the the workspace if not already there ?)
RooArgSet fNuisanceParameters
void ComputeIntervalFromCdf(double c1, double c2) const
internal function compute the interval using Cdf integration
RooAbsReal * fIntegratedLikelihood
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void ComputeIntervalUsingRooFit(double c1, double c2) const
internal function compute the interval using RooFit
virtual Double_t ConfidenceLevel() const
Get the Confidence level for the test.
void ForceNuisancePdf(RooAbsPdf &pdf)
SimpleInterval is a concrete implementation of the ConfInterval interface.
BayesianCalculator()
default constructor
virtual SimpleInterval * GetInterval() const
Compute the interval.
virtual Double_t Size() const
Get the size of the test (eg. rate of Type I error)
RooAbsPdf * GetPosteriorPdf() const
Build and return the posterior pdf (i.e posterior function normalized to all range of poi) Note that ...
The TNamed class is the base class for all named ROOT classes.
Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Add element to non-owning set.
virtual void SetConditionalObservables(const RooArgSet &set)
void ClearAll() const
clear all cached pdf objects
A RooPlot is a plot frame and a container for graphics objects within that frame.
RooAbsPdf * fPosteriorPdf
ROOT::Math::IGenFunction * fPosteriorFunction
TH1 * GetPosteriorHistogram() const
When am approximate posterior is computed binninig the parameter of interest (poi) range (see SetScan...
void SetScanOfPosterior(int nbin=100)
void SetShortestInterval()
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval (e.g. 0.95 for a 95% Confidence Interval)
void SetLeftSideTailFraction(Double_t leftSideFraction)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
virtual ~BayesianCalculator()
Namespace for the RooStats classes.
virtual void SetGlobalObservables(const RooArgSet &set)
double GetMode() const
Returns the value of the parameter for the point in parameter-space that is the most likely.
#define ClassDef(name, id)
TH1 is the base class of all histogramm classes in ROOT.
BayesianCalculator is a concrete implementation of IntervalCalculator, providing the computation of a...
void ComputeShortestInterval() const
compute the shortest interval from the histogram representing the posterior
virtual void SetParameters(const RooArgSet &set)
RooAbsReal * GetPosteriorFunction() const
Build and return the posterior function (not normalized) as a RooAbsReal the posterior is obtained fr...
RooArgSet fConditionalObs
virtual void SetNumIters(Int_t numIters)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
RooPlot * GetPosteriorPlot(bool norm=false, double precision=0.01) const
return a RooPlot with the posterior and the credibility region NOTE: User takes ownership of the retu...
void SetIntegrationType(const char *type)
set the integration type (possible type are) :
virtual void SetTestSize(Double_t size)
set the size of the test (rate of Type I error) ( e.g. 0.05 for a 95% Confidence Interval)
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void ApproximatePosterior() const
approximate posterior in nbins using a TF1 scan the poi values and evaluate the posterior at each poi...