#include "TStopwatch.h"
#include "TUnuran.h"
#include "TUnuranMultiContDist.h"
#include "TH2.h"
#include "TF2.h"
#include "TCanvas.h"
#include "TMath.h"
#include "TRandom3.h"
#include "TSystem.h"
#include "TApplication.h"
#include "TError.h"
#include "Math/Functor.h"
#include <cmath>
#include <iostream>
Go to the source code of this file.
Defines | |
#define | _USE_MATH_DEFINES |
Functions | |
double | gaus2d (double *x, double *p) |
double | log_gaus2d (double *x, double *p) |
int | testUnuran (TUnuran &unr, const std::string &method, const TUnuranMultiContDist &dist, TH2 *h1, const TH2 *href) |
int | testGetRandom (TF2 *f, TH1 *h1, const TH2 *href=0) |
int | unuranMulti2D () |
int | main (int argc, char **argv) |
Variables | |
int | n = 1000000 |
bool | useRandomSeed = false |
#define _USE_MATH_DEFINES |
Definition at line 26 of file unuranMulti2D.cxx.
Definition at line 39 of file unuranMulti2D.cxx.
Definition at line 52 of file unuranMulti2D.cxx.
References gaus2d(), and log().
Referenced by unuranMulti2D().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 286 of file unuranMulti2D.cxx.
References TApplication::Run(), and unuranMulti2D().
Definition at line 102 of file unuranMulti2D.cxx.
References E, TH2::Fill(), h1, i, n, TH2D::Reset(), w, and x.
Referenced by unuranMulti2D(), and unuranMultiDim().
int testUnuran | ( | TUnuran & | unr, | |
const std::string & | method, | |||
const TUnuranMultiContDist & | dist, | |||
TH2 * | h1, | |||
const TH2 * | href | |||
) |
Definition at line 59 of file unuranMulti2D.cxx.
References TH1::Chi2Test(), ROOT::Math::gv_detail::dist(), E, TH2::Fill(), h1, i, TUnuran::Init(), TH2::KolmogorovTest(), TUnuran::MethodName(), n, TH2D::Reset(), TUnuran::SampleMulti(), w, and x.
int unuranMulti2D | ( | ) |
Definition at line 135 of file unuranMulti2D.cxx.
References c1, TCanvas::cd(), ROOT::Math::gv_detail::dist(), TPad::Divide(), TH1::Draw(), flog, gaus2d(), gErrorIgnoreLevel, gRandom, gSystem, h1, h2, TSystem::Load(), log_gaus2d(), m, method, par, TUnuranMultiContDist::SetDomain(), TUnuranMultiContDist::SetMode(), TRandom::SetSeed(), testGetRandom(), testUnuran(), useRandomSeed, xmax, and xmin.
Referenced by main().
int n = 1000000 |
Definition at line 35 of file unuranMulti2D.cxx.
bool useRandomSeed = false |
Definition at line 37 of file unuranMulti2D.cxx.