Monte-Carlo integration [abstract base]. More...
#include <mcarlo.h>
This class provides the generic Monte Carlo parameters and the random number generator. The default type for the random number generator is a rng_gsl object.
Public Member Functions | |
virtual const char * | type () |
Return string denoting type ("mcarlo") | |
![]() | |
virtual double | minteg (multi_funct &func, size_t ndim, const boost::numeric::ublas::vector< double > &a, const boost::numeric::ublas::vector< double > &b) |
Integrate function func over the hypercube from ![]() ![]() ![]() | |
virtual int | minteg_err (multi_funct &func, size_t ndim, const boost::numeric::ublas::vector< double > &a, const boost::numeric::ublas::vector< double > &b, double &res, double &err)=0 |
Integrate function func over the hypercube from ![]() ![]() ![]() | |
double | get_error () |
Return the error in the result from the last call to minteg() or minteg_err() More... | |
const char * | type () |
Return string denoting type ("inte_multi") | |
Public Attributes | |
unsigned long | n_points |
Number of integration points (default 1000) | |
rng_gsl_uniform_real | rng_dist |
The random number distribution. | |
rng_t | rng |
The random number generator. | |
![]() | |
bool | err_nonconv |
If true, call the error handler if the routine does not "converge". | |
int | verbose |
Verbosity. | |
double | tol_rel |
The maximum "uncertainty" in the value of the integral (default ![]() | |
Additional Inherited Members | |
![]() | |
double | interror |
The uncertainty for the last integration computation. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).