CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Classes | Functions
testRandDists.cc File Reference
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Random/Randomize.h"
#include "CLHEP/Random/RandGaussQ.h"
#include "CLHEP/Random/RandGaussT.h"
#include "CLHEP/Random/RandPoissonQ.h"
#include "CLHEP/Random/RandPoissonT.h"
#include "CLHEP/Random/RandSkewNormal.h"
#include "CLHEP/Random/defs.h"
#include <iostream>
#include <iomanip>
#include <cmath>
#include <stdlib.h>
#include <cstdlib>

Go to the source code of this file.

Classes

class  poisson
 

Functions

bool gaussianTest (HepRandom &dist, double mu, double sigma, int nNumbers)
 
bool skewNormalTest (HepRandom &dist, double k, int nNumbers)
 
doublecreateRefDist (poisson pdist, int N, int MINBIN, int MAXBINS, int clumping, int &firstBin, int &lastBin)
 
bool poissonTest (RandPoisson &dist, double mu, int N)
 
int testRandGauss ()
 
int testSkewNormal ()
 
int testRandGaussT ()
 
int testRandGaussQ ()
 
int testRandPoisson ()
 
int testRandPoissonQ ()
 
int testRandPoissonT ()
 
int testRandGeneral ()
 
int main ()
 

Function Documentation

◆ createRefDist()

double * createRefDist ( poisson  pdist,
int  N,
int  MINBIN,
int  MAXBINS,
int  clumping,
int &  firstBin,
int &  lastBin 
)

Definition at line 461 of file testRandDists.cc.

References exit.

Referenced by poissonTest().

◆ gaussianTest()

bool gaussianTest ( HepRandom dist,
double  mu,
double  sigma,
int  nNumbers 
)

Definition at line 182 of file testRandDists.cc.

◆ main()

int main ( )

◆ poissonTest()

bool poissonTest ( RandPoisson dist,
double  mu,
int  N 
)

Definition at line 529 of file testRandDists.cc.

References createRefDist(), and CLHEP::RandPoisson::fire().

◆ skewNormalTest()

bool skewNormalTest ( HepRandom dist,
double  k,
int  nNumbers 
)

Definition at line 350 of file testRandDists.cc.

◆ testRandGauss()

int testRandGauss ( )

Definition at line 684 of file testRandDists.cc.

Referenced by main().

◆ testRandGaussQ()

int testRandGaussQ ( )

Definition at line 839 of file testRandDists.cc.

Referenced by main().

◆ testRandGaussT()

int testRandGaussT ( )

Definition at line 786 of file testRandDists.cc.

Referenced by main().

◆ testRandGeneral()

int testRandGeneral ( )

Definition at line 1069 of file testRandDists.cc.

Referenced by main().

◆ testRandPoisson()

int testRandPoisson ( )

Definition at line 895 of file testRandDists.cc.

Referenced by main().

◆ testRandPoissonQ()

int testRandPoissonQ ( )

Definition at line 953 of file testRandDists.cc.

Referenced by main().

◆ testRandPoissonT()

int testRandPoissonT ( )

Definition at line 1011 of file testRandDists.cc.

Referenced by main().

◆ testSkewNormal()

int testSkewNormal ( )

Definition at line 737 of file testRandDists.cc.

Referenced by main().