Sector decomposition
monte_carlo.h
Go to the documentation of this file.
1
8/*
9 * Copyright (C) 2007 Stefan Weinzierl
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25
26#ifndef __SECTOR_DECOMPOSITION_MONTE_CARLO_H__
27#define __SECTOR_DECOMPOSITION_MONTE_CARLO_H__
28
29#include <cstddef>
30
31#include <ginac/ginac.h>
32
33namespace sector_decomposition {
34
48
49 // ctors
50 public :
53
54 // member variables :
55 public :
60
62 size_t calls_low;
64 size_t calls_high;
65 };
66
77
78 // ctors
79 public :
81 monte_carlo_result(double mean, double error, double chi_squared);
82
83 // functions
84 public :
85 double get_mean(void) const;
86 double get_error(void) const;
87 double get_chi_squared(void) const;
88
89 // member variables :
90 protected :
92 double mean;
94 double error;
97 };
98
104 monte_carlo_result intnum(GiNaC::ex expr, const std::vector<GiNaC::ex> & x, const std::vector<double> & xmin, const std::vector<double> & xmax, const monte_carlo_parameters & mc_parameters, int verbose_level = 0);
105
111 monte_carlo_result intnum(GiNaC::ex expr, const std::vector<GiNaC::ex> & x, const monte_carlo_parameters & mc_parameters, int verbose_level = 0);
112
118 monte_carlo_result intnum_imp(GiNaC::ex expr, size_t dimension, double *xmin, double *xmax, const monte_carlo_parameters & mc_parameters, int verbose_level = 0);
119
120} // namespace sector_decomposition
121
122#endif // ndef __SECTOR_DECOMPOSITION_MONTE_CARLO_H__
123
size_t iterations_low
number of iterations to warm-up the grid
Definition: monte_carlo.h:57
size_t iterations_high
number of iterations for the Monte-Carlo integration
Definition: monte_carlo.h:59
size_t calls_low
number of integrand evaluations for one iteration during the warm-up phase
Definition: monte_carlo.h:62
size_t calls_high
number of integrand evaluations for one iteration during the Monte-Carlo integration
Definition: monte_carlo.h:64
monte_carlo_parameters(void)
Definition: monte_carlo.cc:59
Definition: monte_carlo.h:76
double get_mean(void) const
Definition: monte_carlo.cc:112
monte_carlo_result(void)
Definition: monte_carlo.cc:89
double error
Monte-Carlo error.
Definition: monte_carlo.h:94
double chi_squared
chi-squared for the Monte-Carlo integration
Definition: monte_carlo.h:96
double get_chi_squared(void) const
Definition: monte_carlo.cc:132
double get_error(void) const
Definition: monte_carlo.cc:122
double mean
Monte-Carlo estimate for the integral.
Definition: monte_carlo.h:92
Definition: basic_sector_decomposition.cc:36
monte_carlo_result intnum(GiNaC::ex expr, const std::vector< GiNaC::ex > &x, const std::vector< double > &xmin, const std::vector< double > &xmax, const monte_carlo_parameters &mc_parameters, int verbose_level)
Definition: monte_carlo.cc:151
monte_carlo_result intnum_imp(GiNaC::ex expr, size_t dimension, double *xmin, double *xmax, const monte_carlo_parameters &mc_parameters, int verbose_level)
Definition: monte_carlo.cc:210