11 #ifndef ROOT_Math_GoFTest 12 #define ROOT_Math_GoFTest 16 #ifndef ROOT_Math_WrappedFunction 76 Instantiate(sample, sampleSize);
84 Instantiate(sample, sampleSize);
85 SetUserDistribution(dist, userDist,
xmin,
xmax);
92 SetDistributionFunction(wdist, userDist,
xmin,
xmax);
97 SetDistributionFunction(dist, userDist,
xmin,
xmax);
103 SetUserDistribution<Dist>(pdf, kPDF,
xmin,
xmax);
108 SetUserDistribution(pdf, kPDF,
xmin,
xmax);
121 SetUserDistribution(cdf, kCDF,
xmin,
xmax);
136 void AndersonDarling2SamplesTest(
Double_t& pvalue,
Double_t& testStat)
const;
137 Double_t AndersonDarling2SamplesTest(
const Char_t* option =
"p")
const;
154 void KolmogorovSmirnov2SamplesTest(
Double_t& pvalue,
Double_t& testStat)
const;
155 Double_t KolmogorovSmirnov2SamplesTest(
const Char_t* option =
"p")
const;
185 std::auto_ptr<IGenFunction>
fCDF;
218 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
std::auto_ptr< IGenFunction > fCDF
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)
double cdf(double *x, double *p)
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)
void SetUserDistribution(Dist &dist, EUserDistribution userDist=kPDF, Double_t xmin=1, Double_t xmax=0)