|
Sector decomposition
|
#include <monte_carlo.h>
Public Member Functions | |
| monte_carlo_result (void) | |
| monte_carlo_result (double mean, double error, double chi_squared) | |
| double | get_mean (void) const |
| double | get_error (void) const |
| double | get_chi_squared (void) const |
Protected Attributes | |
| double | mean |
| Monte-Carlo estimate for the integral. | |
| double | error |
| Monte-Carlo error. | |
| double | chi_squared |
| chi-squared for the Monte-Carlo integration | |
This class defines the return type of the result of a Monte Carlo integration.
This class holds the Monte Carlo estimate for the integral (mean), the Monte Carlo integration error (error) and the 
| monte_carlo_result | ( | void | ) |
Default constructor
| monte_carlo_result | ( | double | mmean, |
| double | eerror, | ||
| double | cchi_squared | ||
| ) |
Standard constructor
mean is initialised with mmean, error is initialised with eerror, chi_squared is initialised with cchi_squared.
| double get_chi_squared | ( | void | ) | const |
Returns 
| double get_error | ( | void | ) | const |
Returns the error estimate.
| double get_mean | ( | void | ) | const |
Returns the mean value.