Logo ROOT   6.10/09
Reference Guide
Functions | Variables
unuranDiscrete.cxx File Reference
#include "TUnuran.h"
#include "TUnuranDiscrDist.h"
#include "TH1.h"
#include "TMath.h"
#include "TF1.h"
#include "TRandom3.h"
#include "TApplication.h"
#include "TCanvas.h"
#include "TStopwatch.h"
#include "TError.h"
#include "Math/Functor.h"
#include "Math/DistFunc.h"
#include "Math/Util.h"
#include <iostream>
#include <iomanip>
Include dependency graph for unuranDiscrete.cxx:

Functions

double binomial_pmf (double *x, double *p)
 
int main (int argc, char **argv)
 
double poisson_pmf (double *x, double *p)
 
int testBinomial ()
 
int testPoisson ()
 
int testProbVector ()
 
int testRootBinomial (int m, double p, double &time, TH1 *h2)
 
int testRootPoisson (double mu, double &time, TH1 *h2)
 
int testUnuran (TUnuran &unr, double &time, TH1 *h1, const TH1 *href, bool weightHist=false)
 
int unuranDiscrete ()
 

Variables

TCanvasc1
 
int icanv = 1
 
int n = 1000000
 
bool useRandomSeed = false
 

Function Documentation

◆ binomial_pmf()

double binomial_pmf ( double *  x,
double *  p 
)

Definition at line 52 of file unuranDiscrete.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 451 of file unuranDiscrete.cxx.

◆ poisson_pmf()

double poisson_pmf ( double *  x,
double *  p 
)

Definition at line 46 of file unuranDiscrete.cxx.

◆ testBinomial()

int testBinomial ( )

Definition at line 318 of file unuranDiscrete.cxx.

◆ testPoisson()

int testPoisson ( )

Definition at line 199 of file unuranDiscrete.cxx.

◆ testProbVector()

int testProbVector ( )

Definition at line 143 of file unuranDiscrete.cxx.

◆ testRootBinomial()

int testRootBinomial ( int  m,
double  p,
double &  time,
TH1 h2 
)

Definition at line 121 of file unuranDiscrete.cxx.

◆ testRootPoisson()

int testRootPoisson ( double  mu,
double &  time,
TH1 h2 
)

Definition at line 100 of file unuranDiscrete.cxx.

◆ testUnuran()

int testUnuran ( TUnuran unr,
double &  time,
TH1 h1,
const TH1 href,
bool  weightHist = false 
)

Definition at line 59 of file unuranDiscrete.cxx.

◆ unuranDiscrete()

int unuranDiscrete ( )

Definition at line 423 of file unuranDiscrete.cxx.

Variable Documentation

◆ c1

TCanvas* c1

Definition at line 41 of file unuranDiscrete.cxx.

◆ icanv

int icanv = 1

Definition at line 42 of file unuranDiscrete.cxx.

◆ n

int n = 1000000

Definition at line 39 of file unuranDiscrete.cxx.

◆ useRandomSeed

bool useRandomSeed = false

Definition at line 44 of file unuranDiscrete.cxx.