testStatFunc.cxx File Reference

#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 ()


Define Documentation

#define TESTDIST1 ( name,
p1,
s   ) 

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().

#define TESTDIST2 ( name,
p1,
p2,
s   ) 

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().


Function Documentation

int compare ( std::string  name,
double  v1,
double  v2,
double  scale = 2.0 
)

Definition at line 18 of file testStatFunc.cxx.

References d, RootCsg::epsilon, int, and pr().

int main ( void   ) 

Definition at line 378 of file testStatFunc.cxx.

References testStatFunc().

double mbeta_cdf ( double  x,
double  a,
double  b,
double   
)

Definition at line 258 of file testStatFunc.cxx.

References ROOT::Math::beta_cdf().

double mbeta_cdf_c ( double  x,
double  a,
double  b,
double   
)

Definition at line 261 of file testStatFunc.cxx.

References ROOT::Math::beta_cdf_c().

double mbeta_pdf ( double  x,
double  a,
double  b,
double   
)

Definition at line 255 of file testStatFunc.cxx.

References ROOT::Math::beta_pdf().

double mbeta_quantile ( double  x,
double  a,
double  b 
)

Definition at line 264 of file testStatFunc.cxx.

References ROOT::Math::beta_quantile().

double mbeta_quantile_c ( double  x,
double  a,
double  b 
)

Definition at line 267 of file testStatFunc.cxx.

References ROOT::Math::beta_quantile_c().

void printStatus ( int  iret  ) 

Definition at line 202 of file testStatFunc.cxx.

Referenced by testBinomialCdf(), and testPoissonCdf().

int testBinomialCdf ( double  p,
int  n,
double  tol 
)

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().

int testPoissonCdf ( double  mu,
double  tol 
)

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().


Generated on Tue Jul 5 16:07:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1