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