Public Member Functions | List of all members
o2scl::mcarlo_plain< func_t, vec_t, rng_t > Class Template Reference

Multidimensional integration using plain Monte Carlo (GSL) More...

#include <mcarlo_plain.h>

Inheritance diagram for o2scl::mcarlo_plain< func_t, vec_t, rng_t >:
o2scl::mcarlo< func_t, vec_t, rng_t > o2scl::inte_multi< func_t, vec_t >

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 $ x_i=a_i $ to $ x_i=b_i $ for $ 0<i< $ ndim-1.
 
virtual const char * type ()
 Return string denoting type ("mcarlo_plain")
 
- Public Member Functions inherited from o2scl::inte_multi< func_t, vec_t >
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< func_t, vec_t, rng_t >
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.
 
- Public Attributes inherited from o2scl::inte_multi< func_t, vec_t >
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 $ 10^{-8} $).
 
- Protected Attributes inherited from o2scl::inte_multi< func_t, vec_t >
double interror
 The uncertainty for the last integration computation.
 

Detailed Description

template<class func_t = multi_funct11, class vec_t = boost::numeric::ublas::vector<double>, class rng_t = rng_gsl>
class o2scl::mcarlo_plain< func_t, vec_t, rng_t >

Definition at line 65 of file mcarlo_plain.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).