ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
gsl::monte::miser Namespace Reference

Monte Carlo integration using MISER. More...

Classes

class  state
 Workspace for Monte Carlo integration using the MISER algorithm. More...
 

Functions

int init (gsl::monte::miser::state &state)
 C++ version of gsl_monte_miser_init(). More...
 
template<typename L , typename U >
int integrate (gsl::monte::function &f, L const &xl, U const &xu, size_t const calls, gsl::rng &r, state &state, double &result, double &abserr)
 C++ version of gsl_monte_miser_integrate(). More...
 

Detailed Description

Monte Carlo integration using MISER.

Function Documentation

◆ init()

int gsl::monte::miser::init ( gsl::monte::miser::state state)
inline

C++ version of gsl_monte_miser_init().

This allows this state to be reused.

Parameters
stateThe workspace
Returns
Error code on failure

Definition at line 301 of file monte_miser.hpp.

References gsl::monte::miser::state::get().

◆ integrate()

template<typename L , typename U >
int gsl::monte::miser::integrate ( gsl::monte::function f,
L const &  xl,
U const &  xu,
size_t const  calls,
gsl::rng r,
state state,
double &  result,
double &  abserr 
)
inline

C++ version of gsl_monte_miser_integrate().

This version can use gsl::vector or std::vector instead of arrays of doubles.

Parameters
fThe function
xlAn array of size dim (lower bounds)
xuAn array of size dim (upper bounds)
callsThe fixed number of function calls to use
rA random number generator
stateThe state
resultStorage for result
abserrEstimated absolute error
Returns
Error code on failure

Definition at line 360 of file monte_miser.hpp.

References gsl::monte::miser::state::get(), and gsl::rng::get().