11 #ifndef ROOT_Math_GoFTest 12 #define ROOT_Math_GoFTest 72 Instantiate(sample, sampleSize);
80 Instantiate(sample, sampleSize);
81 SetUserDistribution(dist, userDist,
xmin,
xmax);
88 SetDistributionFunction(wdist, userDist,
xmin,
xmax);
93 SetDistributionFunction(dist, userDist,
xmin,
xmax);
99 SetUserDistribution<Dist>(pdf, kPDF,
xmin,
xmax);
104 SetUserDistribution(pdf, kPDF,
xmin,
xmax);
112 SetUserDistribution<Dist>(cdf, kCDF,
xmin,
xmax);
117 SetUserDistribution(cdf, kCDF,
xmin,
xmax);
132 void AndersonDarling2SamplesTest(
Double_t& pvalue,
Double_t& testStat)
const;
133 Double_t AndersonDarling2SamplesTest(
const Char_t* option =
"p")
const;
150 void KolmogorovSmirnov2SamplesTest(
Double_t& pvalue,
Double_t& testStat)
const;
151 Double_t KolmogorovSmirnov2SamplesTest(
const Char_t* option =
"p")
const;
181 std::unique_ptr<IGenFunction>
fCDF;
214 void SetSamples(std::vector<const Double_t*> samples,
const std::vector<UInt_t> samplesSizes);
double dist(Rotation3D const &r1, Rotation3D const &r2)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Namespace for new ROOT classes and functions.
std::vector< Double_t > fCombinedSamples
void SetUserCDF(Dist &cdf, Double_t xmin=1, Double_t xmax=0)
TRObject operator()(const T1 &t1) const
Template class to wrap any C++ callable object which takes one argument i.e.
void SetParameters(TFitEditor::FuncParams_t &pars, TF1 *func)
Restore the parameters from pars into the function.
void SetUserDistribution(const IGenFunction &dist, GoFTest::EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
std::unique_ptr< IGenFunction > fCDF
double Dist(void *xp, void *yp)
Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y ...
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)
Namespace for new Math classes and functions.
Binding & operator=(OUT(*fun)(void))
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)
GoFTest(UInt_t sampleSize, const Double_t *sample, Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)
void SetUserPDF(const IGenFunction &pdf, Double_t xmin=1, Double_t xmax=0)
static constexpr double ns
void SetUserDistribution(Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)