Sector decomposition
|
#include <monte_carlo.h>
Public Member Functions | |
monte_carlo_parameters (void) | |
monte_carlo_parameters (size_t iterations_low, size_t iterations_high, size_t calls_low, size_t calls_high) | |
This class defines the parametes for the Monte Carlo integration.
The Monte Carlo integration uses first iterations_low iterations with calls_low function evaluations to set up a grid for the Vegas algorithm. The results from this first phase (apart from the grid) are discarded.
In the second stage, the integrand is evaluated in iterations_high iterations with calls_high function evaluations each.
monte_carlo_parameters | ( | void | ) |
Default constructor
monte_carlo_parameters | ( | size_t | i_l, |
size_t | i_h, | ||
size_t | c_l, | ||
size_t | c_h | ||
) |
Constructor
iterations_low is initialised with i_l, iterations_high is initialised with i_h, calls_low is initialised with c_l, calls_high is initialised with c_h.