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;
#define ClassDef(name, id)
RooDataSet is a container class to hold unbinned data.
This class simply holds a sampling distribution of some test statistic.
virtual ~SamplingDistribution()
Destructor of SamplingDistribution.
Double_t InverseCDF(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
Int_t GetSize() const
size of samples
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
SamplingDistribution()
Default constructor for SamplingDistribution.
Double_t CDF(Double_t x) const
calculate CDF as a special case of Integral(...) with lower limit equal to -inf
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 InverseCDFInterpolate(Double_t pvalue)
get the inverse of the Cumulative distribution function
const std::vector< Double_t > & GetSamplingDistribution() const
Get test statistics values.
void Add(const SamplingDistribution *other)
merge two sampling distributions
std::vector< Double_t > fSampleWeights
vector of points for the sampling distribution
const TString GetVarName() const
void SortValues() const
Cached vector with sum of the weight used to compute integral error.
std::vector< Double_t > fSamplingDist
const std::vector< Double_t > & GetSampleWeights() const
Get the sampling weights.
The TNamed class is the base class for all named ROOT classes.
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer