ROOT::Math::GoFTest goftest(n1, sample1, n2, sample2); double pValueAD = goftest.AndersonDarling2SamplesTest(); double pValueKS = goftest.KolmogorovSmirnov2SamplesTest();The class can return optionally also the test statistics instead of the p value.
ROOT::Math::GoFTest goftest(n, sample, ROOT::Math::GoFTest::kGaussian); double pValueAD = goftest.AndersonDarlingTest(); double pValueKS = goftest.KolmogorovSmirnovTest();
ROOT::Math::Functor1D cdf_func(&ROOT::Math::landau_cdf); ROOT::Math::GofTest goftest(n, sample, cdf_func, ROOT::Math::GoFTest::kCDF); double pValueAD = goftest.AndersonDarlingTest();
ROOT::Math::Functor1D pdf_func(&ROOT::Math::landau_pdf); double xmin = 5*TMath::Min_Element(n,sample); double xmax = 5*TMath::Max_Element(n,sample); ROOT::Math::GofTest goftest(n, sample, pdf_func, ROOT::Math::GoFTest::kPDF,xmin,xmax); double pValueAD = goftest.AndersonDarlingTest();
TKDTreeBinning* fBins = new TKDTreeBinning(dataSize, dataDim, sample, nBins);
Double_t* binsMinEdges = fBins->GetBinsMinEdges(); Double_t* binsMaxEdges = fBins->GetBinsMaxEdges();If you wish to retrieve them sorted by their density issue before the earlier getters fBins->SortBinsByDensity();
std::pairbinEdges = fBins->GetBinEdges(b);
Double_t density = GetBinDensity(b); Double_t volume = GetBinVolume(b); Double_t* center = GetBinCenter(b);
double airy_Ai(double x); double airy_Bi(double x); double airy_Ai_deriv(double x); double airy_Bi_deriv(double x); double airy_zero_Ai(unsigned int s); double airy_zero_Bi(unsigned int s); double airy_zero_Ai_deriv(unsigned int s); double airy_zero_Bi_deriv(unsigned int s);
double wigner_3j(int ja, int jb, int jc, int ma, int mb, int mc); double wigner_6j(int ja, int jb, int jc, int jd, int je, int jf); double wigner_9j(int ja, int jb, int jc, int jd, int je, int jf, int jg, int jh, int ji);
double noncentral_chisquared_pdf(double x, double r, double lambda);It is implemented using Bessel functions or hypergeometric function