Multidimensional integration using plain Monte Carlo (GSL) More...
#include <mcarlo_plain.h>
Definition at line 65 of file mcarlo_plain.h.
Public Member Functions | |
| virtual int | minteg_err (func_t &func, size_t ndim, const vec_t &a, const vec_t &b, double &res, double &err) |
Integrate function func from x=a to x=b. | |
| virtual double | minteg (func_t &func, size_t ndim, const vec_t &a, const vec_t &b) |
Integrate function func over the hypercube from to for ndim-1. | |
| virtual const char * | type () |
| Return string denoting type ("mcarlo_plain") | |
Public Member Functions inherited from o2scl::inte_multi< multi_funct, boost::numeric::ublas::vector< double > > | |
| 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 to for ndim-1. More... | |
| 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 to for ndim-1. | |
| 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") | |
Additional Inherited Members | |
Public Attributes inherited from o2scl::mcarlo< multi_funct, boost::numeric::ublas::vector< double >, rng_gsl > | |
| unsigned long | n_points |
| Number of integration points (default 1000) | |
| rng_gsl_uniform_real | rng_dist |
| The random number distribution. | |
| rng_gsl | rng |
| The random number generator. | |
Public Attributes inherited from o2scl::inte_multi< multi_funct, boost::numeric::ublas::vector< double > > | |
| 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 ). More... | |
Protected Attributes inherited from o2scl::inte_multi< multi_funct, boost::numeric::ublas::vector< double > > | |
| double | interror |
| The uncertainty for the last integration computation. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).