53 double Density(
int nDim,
double *
x) {
65 cout<<
"--- kanwa started ---"<<endl;
67 TH2D *
hst_xy =
new TH2D(
"foam_hst_xy" ,
"FOAM x-y plot", 50,0,1.0, 50,0,1.0);
76 FoamX->SetnCells(500);
91 for(
long loop=0; loop<
nev; loop++){
107 double time =
w.CpuTime()*1.E9/
nev;
108 cout <<
"Time using FOAM \t\t " <<
" \t=\t " << time <<
"\tns/call" << endl;
116 cout<<
"--- kanwa ended ---"<<endl;
123double UCamel2(
double *
x,
double *) {
130 std::cout <<
"run unuran " << std::endl;
134 TH2D *
h1 =
new TH2D(
"unr_hst_xy" ,
"UNURAN x-y plot", 50,0,1.0, 50,0,1.0);
154 std::cerr <<
"Error initializing unuran with method " <<
unr.MethodName() << endl;
159 for (
int i = 0; i <
nev; ++i) {
167 double time =
w.CpuTime()*1.E9/
nev;
168 cout <<
"Time using Unuran " <<
unr.MethodName() <<
" \t=\t " << time <<
"\tns/call" << endl;
191 std::cout <<
"\nChi2 Test Results (UNURAN-FOAM):\t";
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TSystem * gSystem
A 2-Dim function with parameters.
Abstract class representing n-dimensional real positive integrand function.
TFoam is the main class of the multi-dimensional general purpose Monte Carlo event generator (integra...
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
2-D histogram with a double per channel (see TH1 documentation)
Service class for 2-D histogram classes.
Random number generator class based on M.
This is the base class for the ROOT Random number generators.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
TUnuranMultiContDist class describing multi dimensional continuous distributions.
double Dist(void *xp, void *yp)
double dist(Rotation3D const &r1, Rotation3D const &r2)
VecExpr< UnaryOp< Sqr< T >, VecExpr< A, T, D >, T >, T, D > sqr(const VecExpr< A, T, D > &rhs)