#include "Math/DistFuncMathMore.h"
#include "Math/GSLIntegrator.h"
#include "Math/WrappedFunction.h"
#include "Math/DistFuncMathCore.h"
#include <iostream>
#include <limits>
Go to the source code of this file.
Classes | |
struct | TestFunc1 |
struct | TestFunc1::PdfFunction |
struct | TestFunc2 |
struct | TestFunc2::PdfFunction |
Defines | |
#define | TESTDIST1(name, p1, s) |
#define | TESTDIST2(name, p1, p2, s) |
Functions | |
int | compare (std::string name, double v1, double v2, double scale=2.0) |
void | printStatus (int iret) |
double | mbeta_pdf (double x, double a, double b, double) |
double | mbeta_cdf (double x, double a, double b, double) |
double | mbeta_cdf_c (double x, double a, double b, double) |
double | mbeta_quantile (double x, double a, double b) |
double | mbeta_quantile_c (double x, double a, double b) |
int | testPoissonCdf (double mu, double tol) |
int | testBinomialCdf (double p, int n, double tol) |
int | testStatFunc () |
int | main () |
Value:
{\ int ir = 0; \ TestFunc1 t(p1,s);\ ir |= t.testCdf( name ## _pdf , name ## _cdf );\ ir |= t.testCdf( name ##_pdf , name ##_cdf_c,true);\ ir |= t.testQuantile( name ## _cdf, name ##_quantile);\ ir |= t.testQuantile( name ##_cdf_c, name ##_quantile_c,true);\ printStatus(ir);\ iret |= ir; }
Definition at line 211 of file testStatFunc.cxx.
Referenced by testStatFunc().
Value:
{\ int ir = 0; \ TestFunc2 t(p1,p2,s);\ ir |= t.testCdf( name ## _pdf , name ## _cdf );\ ir |= t.testCdf( name ##_pdf , name ##_cdf_c,true);\ ir |= t.testQuantile( name ## _cdf, name ##_quantile);\ ir |= t.testQuantile( name ##_cdf_c, name ##_quantile_c,true);\ printStatus(ir);\ iret |= ir; }
Definition at line 221 of file testStatFunc.cxx.
Referenced by testStatFunc().
int compare | ( | std::string | name, | |
double | v1, | |||
double | v2, | |||
double | scale = 2.0 | |||
) |
int main | ( | void | ) |
void printStatus | ( | int | iret | ) |
Definition at line 202 of file testStatFunc.cxx.
Referenced by testBinomialCdf(), and testPoissonCdf().
Definition at line 290 of file testStatFunc.cxx.
References ROOT::Math::binomial_cdf(), ROOT::Math::binomial_cdf_c(), ROOT::Math::binomial_pdf(), compare(), i, j, and printStatus().
Referenced by testStatFunc().
Definition at line 274 of file testStatFunc.cxx.
References compare(), i, j, ROOT::Math::poisson_cdf(), ROOT::Math::poisson_cdf_c(), ROOT::Math::poisson_pdf(), and printStatus().
Referenced by testStatFunc().
int testStatFunc | ( | ) |
Definition at line 308 of file testStatFunc.cxx.
References a, b, ROOT::Math::Cephes::gamma(), gaussian(), m, n, p, testBinomialCdf(), TESTDIST1, TESTDIST2, testPoissonCdf(), and tol.
Referenced by main().