16 #ifndef ROOSTATS_SamplingDistribution 17 #define ROOSTATS_SamplingDistribution 33 SamplingDistribution(
const char *
name,
const char *title, std::vector<Double_t>& samplingDist,
const char * varName = 0);
35 std::vector<Double_t>& samplingDist, std::vector<Double_t>& sampleWeights,
const char * varName = 0);
89 mutable std::vector<Double_t>
fSumW;
90 mutable std::vector<Double_t>
fSumW2;
const std::vector< Double_t > & GetSamplingDistribution() const
Get test statistics values.
std::vector< Double_t > fSumW
std::vector< Double_t > fSumW2
Cached vector with sum of the weight used to compute integral.
TString fVarName
vector of weights for the samples
Double_t InverseCDF(Double_t pvalue)
get the inverse of the Cumulative distribution function
const std::vector< Double_t > & GetSampleWeights() const
Get the sampling weights.
std::vector< Double_t > fSampleWeights
vector of points for the sampling distribution
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
Double_t InverseCDFInterpolate(Double_t pvalue)
get the inverse of the Cumulative distribution function
Double_t Integral(Double_t low, Double_t high, Bool_t normalize=kTRUE, Bool_t lowClosed=kTRUE, Bool_t highClosed=kFALSE) const
numerical integral in these limits
void SortValues() const
Cached vector with sum of the weight used to compute integral error.
std::vector< Double_t > fSamplingDist
Double_t CDF(Double_t x) const
calculate CDF as a special case of Integral(...) with lower limit equal to -inf
virtual ~SamplingDistribution()
Destructor of SamplingDistribution.
Int_t GetSize() const
size of samples
void Add(const SamplingDistribution *other)
merge two sampling distributions
RooDataSet is a container class to hold unbinned data.
This class simply holds a sampling distribution of some test statistic.
Namespace for the RooStats classes.
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
numerical integral in these limits including error estimation
const TString GetVarName() const
SamplingDistribution()
Default constructor for SamplingDistribution.