Class mcarlo_plain (o2scl)¶
-
template<class func_t = multi_funct, class vec_t = boost::numeric::ublas::vector<double>, class rng_t = rng<>>
class mcarlo_plain : public o2scl::mcarlo<multi_funct, boost::numeric::ublas::vector<double>, rng<>>¶ Multidimensional integration using plain Monte Carlo (GSL)
Public Functions
-
inline virtual ~mcarlo_plain()¶
-
inline 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.
-
inline 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.
-
inline virtual const char *type()¶
Return string denoting type (“mcarlo_plain”)
-
inline virtual ~mcarlo_plain()¶