ROOT » ROOFIT » ROOSTATS » RooStats::SamplingDistribution

class RooStats::SamplingDistribution: public TNamed


SamplingDistribution :

This class simply holds a sampling distribution of some test statistic.
The distribution can either be an empirical distribution (eg. the samples themselves) or
a weighted set of points (eg. for the FFT method).
The class supports merging.

Function Members (Methods)

public:
virtual~SamplingDistribution()
voidTObject::AbstractMethod(const char* method) const
voidAdd(const RooStats::SamplingDistribution* other)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Double_tCDF(Double_t x) const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const vector<Double_t>&GetSampleWeights() const
const vector<Double_t>&GetSamplingDistribution() const
Int_tGetSize() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const TStringGetVarName() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
Double_tIntegral(Double_t low, Double_t high, Bool_t normalize = kTRUE, Bool_t lowClosed = kTRUE, Bool_t highClosed = kFALSE) const
Double_tIntegralAndError(Double_t& error, Double_t low, Double_t high, Bool_t normalize = kTRUE, Bool_t lowClosed = kTRUE, Bool_t highClosed = kFALSE) const
Double_tInverseCDF(Double_t pvalue)
Double_tInverseCDF(Double_t pvalue, Double_t sigmaVariaton, Double_t& inverseVariation)
Double_tInverseCDFInterpolate(Double_t pvalue)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooStats::SamplingDistribution&operator=(const RooStats::SamplingDistribution&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
RooStats::SamplingDistributionSamplingDistribution()
RooStats::SamplingDistributionSamplingDistribution(const RooStats::SamplingDistribution&)
RooStats::SamplingDistributionSamplingDistribution(const char* name, const char* title, const char* varName = 0)
RooStats::SamplingDistributionSamplingDistribution(const char* name, const char* title, vector<Double_t>& samplingDist, const char* varName = 0)
RooStats::SamplingDistributionSamplingDistribution(const char* name, const char* title, vector<Double_t>& samplingDist, vector<Double_t>& sampleWeights, const char* varName = 0)
RooStats::SamplingDistributionSamplingDistribution(const char* name, const char* title, RooDataSet& dataSet, const char* columnName = 0, const char* varName = 0)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidSortValues() const

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
vector<Double_t>fSampleWeightsvector of weights for the samples
vector<Double_t>fSamplingDistvector of points for the sampling distribution
vector<Double_t>fSumW! Chached vector with sum of the weight used to compute integral
vector<Double_t>fSumW2! Chached vector with sum of the weight used to compute integral error
TStringfVarName

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

SamplingDistribution(const char* name, const char* title, vector<Double_t>& samplingDist, const char* varName = 0)
 SamplingDistribution constructor
SamplingDistribution(const char* name, const char* title, vector<Double_t>& samplingDist, vector<Double_t>& sampleWeights, const char* varName = 0)
 SamplingDistribution constructor
SamplingDistribution(const char* name, const char* title, const char* varName = 0)
 SamplingDistribution constructor (with name and title)
SamplingDistribution(const char* name, const char* title, RooDataSet& dataSet, const char* columnName = 0, const char* varName = 0)
 Creates a SamplingDistribution from a RooDataSet for debugging
 purposes; e.g. if you need a Gaussian type SamplingDistribution
 you can generate it from a Gaussian pdf and use the resulting
 RooDataSet with this constructor.

 The result is the projected distribution onto varName
 marginalizing the other variables.

 If varName is not given, the first variable will be used.
 This is useful mostly for RooDataSets with only one observable.
 check there are any meaningful entries in the given dataset
SamplingDistribution()
 SamplingDistribution default constructor
~SamplingDistribution()
void Add(const RooStats::SamplingDistribution* other)
 Merge SamplingDistributions (does nothing if NULL is given).
 If variable name was not set before, it is copied from the added
 SamplingDistribution.
Double_t Integral(Double_t low, Double_t high, Bool_t normalize = kTRUE, Bool_t lowClosed = kTRUE, Bool_t highClosed = kFALSE) const
 Returns the integral in the open/closed/mixed interval. Default is [low,high) interval.
 Normalization can be turned off.
void SortValues() const
Double_t IntegralAndError(Double_t& error, Double_t low, Double_t high, Bool_t normalize = kTRUE, Bool_t lowClosed = kTRUE, Bool_t highClosed = kFALSE) const
 Returns the integral in the open/closed/mixed interval. Default is [low,high) interval.
 Normalization can be turned off.
 compute also the error on the integral
Double_t CDF(Double_t x) const
 returns the closed integral [-inf,x]
Double_t InverseCDF(Double_t pvalue)
 returns the inverse of the cumulative distribution function
Double_t InverseCDF(Double_t pvalue, Double_t sigmaVariaton, Double_t& inverseVariation)
 returns the inverse of the cumulative distribution function, with variations depending on number of samples
Double_t InverseCDFInterpolate(Double_t pvalue)
 returns the inverse of the cumulative distribution function
SamplingDistribution(const char* name, const char* title, vector<Double_t>& samplingDist, const char* varName = 0)
 Constructor for SamplingDistribution
Int_t GetSize() const
 size of samples
{return fSamplingDist.size();}
const std::vector<Double_t> & GetSamplingDistribution() const
 Get test statistics values
{return fSamplingDist;}
const std::vector<Double_t> & GetSampleWeights() const
 Get the sampling weights
{return fSampleWeights;}
const TString GetVarName() const
{return fVarName;}