11#ifndef ROOT_Math_GoFTest
12#define ROOT_Math_GoFTest
74 SetUserDistribution<Dist>(dist, userDist,
xmin,
xmax);
182 std::unique_ptr<IGenFunction>
fCDF;
213 void SetSamples(std::vector<const Double_t*> samples,
const std::vector<UInt_t> samplesSizes);
Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y ...
void SetUserDistribution(Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
static Double_t PValueADKSamples(UInt_t nsamples, Double_t A2)
void operator()(ETestType test, Double_t &pvalue, Double_t &testStat) const
void SetDistributionFunction(const IGenFunction &cdf, Bool_t isPDF, Double_t xmin, Double_t xmax)
std::unique_ptr< IGenFunction > fCDF
void SetUserPDF(const IGenFunction &pdf, Double_t xmin=1, Double_t xmax=0)
void SetUserPDF(Dist &pdf, Double_t xmin=1, Double_t xmax=0)
GoFTest operator=(GoFTest &gof)
void SetSamples(std::vector< const Double_t * > samples, const std::vector< UInt_t > samplesSizes)
void SetUserCDF(const IGenFunction &cdf, Double_t xmin=1, Double_t xmax=0)
std::vector< Double_t > fCombinedSamples
The distribution parameters (e.g. fParams[0] = mean, fParams[1] = sigma for a Gaussian)
void KolmogorovSmirnovTest(Double_t &pvalue, Double_t &testStat) const
std::vector< Double_t > fParams
Type of distribution.
GoFTest(UInt_t sampleSize, const Double_t *sample, const IGenFunction &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
Double_t LogNormalCDF(Double_t x) const
void Instantiate(const Double_t *sample, UInt_t sampleSize)
void SetDistribution(EDistribution dist, const std::vector< double > &distParams={})
Double_t GaussianCDF(Double_t x) const
GoFTest(UInt_t sampleSize, const Double_t *sample, Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void SetUserDistribution(const IGenFunction &dist, GoFTest::EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void AndersonDarling2SamplesTest(Double_t &pvalue, Double_t &testStat) const
static Double_t GetSigmaN(const std::vector< UInt_t > &ns, UInt_t N)
void KolmogorovSmirnov2SamplesTest(Double_t &pvalue, Double_t &testStat) const
std::vector< std::vector< Double_t > > fSamples
Double_t PValueAD1Sample(Double_t A2) const
void AndersonDarlingTest(Double_t &pvalue, Double_t &testStat) const
Double_t ExponentialCDF(Double_t x) const
void SetParameters(const std::vector< double > ¶ms)
static Double_t InterpolatePValues(int nsamples, Double_t A2)
void SetUserCDF(Dist &cdf, Double_t xmin=1, Double_t xmax=0)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Template class to wrap any C++ callable object which takes one argument i.e.
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...