11#ifndef ROOT_Math_GoFTest
12#define ROOT_Math_GoFTest
181 std::unique_ptr<IGenFunction>
fCDF;
214 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
void KolmogorovSmirnovTest(Double_t &pvalue, Double_t &testStat) const
GoFTest(UInt_t sampleSize, const Double_t *sample, const IGenFunction &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void SetDistribution(EDistribution dist)
Double_t LogNormalCDF(Double_t x) const
void Instantiate(const Double_t *sample, UInt_t sampleSize)
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
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.
double Dist(void *xp, void *yp)
double dist(Rotation3D const &r1, Rotation3D const &r2)
Namespace for new ROOT classes and functions.
static constexpr double ns