16 #ifndef ROOSTATS_SamplingDistribution 17 #define ROOSTATS_SamplingDistribution 49 SamplingDistribution(
const char *
name,
const char *title, std::vector<Double_t>& samplingDist,
const char * varName = 0);
51 std::vector<Double_t>& samplingDist, std::vector<Double_t>& sampleWeights,
const char * varName = 0);
105 mutable std::vector<Double_t>
fSumW;
const std::vector< Double_t > & GetSamplingDistribution() const
Get test statistics values.
std::vector< Double_t > fSumW
std::vector< Double_t > fSumW2
Chached 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
Chached 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.