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

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)
double * createRefDist (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

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

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

Definition at line 182 of file testRandDists.cc.

Referenced by testRandGauss(), testRandGaussQ(), testRandGaussT(), and testRandGeneral().

int main (  ) 

Definition at line 1196 of file testRandDists.cc.

References testRandGauss(), testRandGaussQ(), testRandGaussT(), testRandGeneral(), testRandPoisson(), testRandPoissonQ(), testRandPoissonT(), and testSkewNormal().

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

Definition at line 529 of file testRandDists.cc.

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

Referenced by testRandPoisson(), testRandPoissonQ(), and testRandPoissonT().

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

Definition at line 350 of file testRandDists.cc.

Referenced by testSkewNormal().

int testRandGauss (  ) 

Definition at line 684 of file testRandDists.cc.

References CLHEP::RandGauss::fire(), and gaussianTest().

int testRandGaussQ (  ) 

Definition at line 839 of file testRandDists.cc.

References CLHEP::RandGaussQ::fire(), and gaussianTest().

int testRandGaussT (  ) 

Definition at line 786 of file testRandDists.cc.

References CLHEP::RandGaussT::fire(), and gaussianTest().

int testRandGeneral (  ) 

Definition at line 1069 of file testRandDists.cc.

References CLHEP::RandGeneral::fire(), and gaussianTest().

int testRandPoisson (  ) 

Definition at line 895 of file testRandDists.cc.

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

int testRandPoissonQ (  ) 

Definition at line 953 of file testRandDists.cc.

References CLHEP::RandPoissonQ::fire(), and poissonTest().

int testRandPoissonT (  ) 

Definition at line 1011 of file testRandDists.cc.

References CLHEP::RandPoissonT::fire(), and poissonTest().

int testSkewNormal (  ) 

Definition at line 737 of file testRandDists.cc.

References CLHEP::RandSkewNormal::fire(), and skewNormalTest().

Referenced by main().


Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7