![]() |
ROOT
6.07/01
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>
Go to the source code of this file.
Functions | |
double | poisson_pmf (double *x, double *p) |
double | binomial_pmf (double *x, double *p) |
int | testUnuran (TUnuran &unr, double &time, TH1 *h1, const TH1 *href, bool weightHist=false) |
int | testRootPoisson (double mu, double &time, TH1 *h2) |
int | testRootBinomial (int m, double p, double &time, TH1 *h2) |
int | testProbVector () |
int | testPoisson () |
int | testBinomial () |
int | unuranDiscrete () |
int | main (int argc, char **argv) |
Variables | |
int | n = 1000000 |
TCanvas * | c1 |
int | icanv = 1 |
bool | useRandomSeed = false |
Definition at line 52 of file unuranDiscrete.cxx.
Referenced by testBinomial().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 451 of file unuranDiscrete.cxx.
Definition at line 46 of file unuranDiscrete.cxx.
Referenced by testPoisson().
int testBinomial | ( | ) |
Definition at line 318 of file unuranDiscrete.cxx.
Referenced by unuranDiscrete().
int testPoisson | ( | ) |
Definition at line 199 of file unuranDiscrete.cxx.
Referenced by unuranDiscrete().
int testProbVector | ( | ) |
Definition at line 143 of file unuranDiscrete.cxx.
Referenced by unuranDiscrete().
Definition at line 121 of file unuranDiscrete.cxx.
Referenced by testBinomial().
Definition at line 100 of file unuranDiscrete.cxx.
Referenced by testPoisson().
int testUnuran | ( | TUnuran & | unr, |
double & | time, | ||
TH1 * | h1, | ||
const TH1 * | href, | ||
bool | weightHist = false |
||
) |
Definition at line 59 of file unuranDiscrete.cxx.
Referenced by testBinomial(), testPoisson(), and testProbVector().
int unuranDiscrete | ( | ) |
Definition at line 423 of file unuranDiscrete.cxx.
Referenced by main().
TCanvas* c1 |
Definition at line 41 of file unuranDiscrete.cxx.
int icanv = 1 |
Definition at line 42 of file unuranDiscrete.cxx.
Referenced by testBinomial(), testPoisson(), and testProbVector().
int n = 1000000 |
Definition at line 39 of file unuranDiscrete.cxx.
Referenced by testBinomial(), testPoisson(), testRootBinomial(), testRootPoisson(), and testUnuran().
bool useRandomSeed = false |
Definition at line 44 of file unuranDiscrete.cxx.
Referenced by unuranDiscrete().