Go to the documentation of this file.
23 #ifndef O2SCL_MCARLO_H
24 #define O2SCL_MCARLO_H
33 #include <boost/numeric/ublas/vector.hpp>
35 #include <o2scl/inte_multi.h>
36 #include <o2scl/rng_gsl.h>
38 #ifndef DOXYGEN_NO_O2NS
73 virtual const char *
type() {
return "mcarlo"; }
77 #ifndef DOXYGEN_NO_O2NS
unsigned long n_points
Number of integration points (default 1000)
rng_gsl_uniform_real rng_dist
The random number distribution.
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
virtual const char * type()
Return string denoting type ("mcarlo")
rng_t rng
The random number generator.
Multi-dimensional integration over a hypercube [abstract base].
std::function< double(size_t, const boost::numeric::ublas::vector< double > &)> multi_funct
Multi-dimensional function typedef in src/base/multi_funct.h.
Monte-Carlo integration [abstract base].
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).