11 #ifndef ROOT_Math_GoFTest
12 #define ROOT_Math_GoFTest
16 #ifndef ROOT_Math_WrappedFunction
185 std::auto_ptr<IGenFunction>
fCDF;
218 void SetSamples(std::vector<const Double_t*> samples,
const std::vector<UInt_t> samplesSizes);
GoFTest operator=(GoFTest &gof)
void SetDistribution(EDistribution dist)
Double_t PValueAD1Sample(Double_t A2) const
double dist(Rotation3D const &r1, Rotation3D const &r2)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
std::vector< Double_t > fCombinedSamples
static Double_t InterpolatePValues(int nsamples, Double_t A2)
std::auto_ptr< IGenFunction > fCDF
void SetUserCDF(Dist &cdf, Double_t xmin=1, Double_t xmax=0)
void KolmogorovSmirnovTest(Double_t &pvalue, Double_t &testStat) const
void operator()(ETestType test, Double_t &pvalue, Double_t &testStat) const
Template class to wrap any C++ callable object which takes one argument i.e.
void SetUserDistribution(const IGenFunction &dist, GoFTest::EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
double cdf(double *x, double *p)
static Double_t PValueADKSamples(UInt_t nsamples, Double_t A2)
static Double_t GetSigmaN(const std::vector< UInt_t > &ns, UInt_t N)
double Dist(void *xp, void *yp)
void AndersonDarling2SamplesTest(Double_t &pvalue, Double_t &testStat) const
Double_t GaussianCDF(Double_t x) const
Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y ...
Double_t LogNormalCDF(Double_t x) const
std::vector< std::vector< Double_t > > fSamples
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
void Instantiate(const Double_t *sample, UInt_t sampleSize)
GoFTest(UInt_t sampleSize, const Double_t *sample, const IGenFunction &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void SetUserPDF(Dist &pdf, Double_t xmin=1, Double_t xmax=0)
void SetUserCDF(const IGenFunction &cdf, Double_t xmin=1, Double_t xmax=0)
void SetSamples(std::vector< const Double_t * > samples, const std::vector< UInt_t > samplesSizes)
GoFTest(UInt_t sampleSize, const Double_t *sample, Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void SetDistributionFunction(const IGenFunction &cdf, Bool_t isPDF, Double_t xmin, Double_t xmax)
void SetUserPDF(const IGenFunction &pdf, Double_t xmin=1, Double_t xmax=0)
void AndersonDarlingTest(Double_t &pvalue, Double_t &testStat) const
void SetUserDistribution(Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void KolmogorovSmirnov2SamplesTest(Double_t &pvalue, Double_t &testStat) const
Double_t ExponentialCDF(Double_t x) const