31 #ifndef ROOT_Math_VavilovTest 32 #define ROOT_Math_VavilovTest 77 double maxabsdiff,
double maxdiffmantissa,
78 double agreefraction,
double agreediffmantissa);
97 double maxabsdiff,
double maxcdfdiff);
164 static double GetSBLambda (
int ikappa,
int ilambda);
171 static void GetPdfTestParams (
const Vavilov& v,
double& maxabsdiff,
double& maxdiffmantissa,
double& agreefraction,
double& agreediffmantissa);
Base class describing a Vavilov distribution.
static void GetCdfTestParams(const Vavilov &v, double &maxabsdiff, double &maxcdfdiff)
Namespace for new ROOT classes and functions.
static int PdfTest(Vavilov &v, std::ostream &os, double maxabsdiff, double maxdiffmantissa, double agreefraction, double agreediffmantissa)
Test the pdf values against the tables of Seltzer and Berger.
static int GetSBNKappa()
Return the number of values in the tables of Seltzer and Berger.
static double GetSBLambda(int ikappa, int ilambda)
Return the value in the tables of Seltzer and Berger.
static void PrintPdfTable(Vavilov &v, std::ostream &os, int digits=3)
Print a table of the pdf values to stream os.
static void GetPdfTestParams(const Vavilov &v, double &maxabsdiff, double &maxdiffmantissa, double &agreefraction, double &agreediffmantissa)
static double GetSBVavilovPdf(int ikappa, int ibeta2, int ilambda)
Return the value of in the tables of Seltzer and Berger.
static int GetSBNBeta2()
Return the number of values in the tables of Seltzer and Berger.
static void GetQuantileTestParams(const Vavilov &v, double &maxabsdiff)
static int QuantileTest(Vavilov &v, std::ostream &os, double maxabsdiff)
Test the quantile values against the cdf Returns 0 if the test is passed.
static int CdfTest(Vavilov &v, std::ostream &os, double maxabsdiff, double maxcdfdiff)
Test the cdf values against the integral of the pdf Returns 0 if the test is passed.
Namespace for new Math classes and functions.
static double GetSBKappa(int ikappa)
Return the value for ikappa in the tables of Seltzer and Berger.
static int GetSBNLambda(int ikappa)
Return the number of values in the tables of Seltzer and Berger.
static double GetSBBeta2(int ibeta2)
Return the value in the tables of Seltzer and Berger.
Test class for class Vavilov and its subclasses.
Double_t Vavilov(Double_t x, Double_t kappa, Double_t beta2)
Returns the value of the Vavilov density function Parameters: 1st - the point were the density functi...