ROOT 6.10/09 Reference Guide |
#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>
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 | |
TCanvas * | c1 |
int | icanv = 1 |
int | n = 1000000 |
bool | useRandomSeed = false |
double binomial_pmf | ( | double * | x, |
double * | p | ||
) |
Definition at line 52 of file unuranDiscrete.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 451 of file unuranDiscrete.cxx.
double poisson_pmf | ( | double * | x, |
double * | p | ||
) |
Definition at line 46 of file unuranDiscrete.cxx.
int testBinomial | ( | ) |
Definition at line 318 of file unuranDiscrete.cxx.
int testPoisson | ( | ) |
Definition at line 199 of file unuranDiscrete.cxx.
int testProbVector | ( | ) |
Definition at line 143 of file unuranDiscrete.cxx.
int testRootBinomial | ( | int | m, |
double | p, | ||
double & | time, | ||
TH1 * | h2 | ||
) |
Definition at line 121 of file unuranDiscrete.cxx.
int testRootPoisson | ( | double | mu, |
double & | time, | ||
TH1 * | h2 | ||
) |
Definition at line 100 of file unuranDiscrete.cxx.
int testUnuran | ( | TUnuran & | unr, |
double & | time, | ||
TH1 * | h1, | ||
const TH1 * | href, | ||
bool | weightHist = false |
||
) |
Definition at line 59 of file unuranDiscrete.cxx.
int unuranDiscrete | ( | ) |
Definition at line 423 of file unuranDiscrete.cxx.
TCanvas* c1 |
Definition at line 41 of file unuranDiscrete.cxx.
int icanv = 1 |
Definition at line 42 of file unuranDiscrete.cxx.
int n = 1000000 |
Definition at line 39 of file unuranDiscrete.cxx.
bool useRandomSeed = false |
Definition at line 44 of file unuranDiscrete.cxx.