multi_inte Class Template Reference

#include <multi_inte.h>

Inheritance diagram for multi_inte:

composite_inte mcarlo_inte gsl_miser gsl_monte gsl_vegas naive_metropolis

Detailed Description

template<class param_t, class func_t, class vec_t = ovector_view>
class multi_inte< param_t, func_t, vec_t >

Multi-dimensional integration over a hypercube base class.

Multi-dimensional integration over a region defined by constant limits. For more general regions of integration, use children of the class gen_inte.

Definition at line 41 of file multi_inte.h.


Public Member Functions

 multi_inte ()
virtual ~multi_inte ()
virtual double minteg (func_t &func, size_t ndim, const vec_t &a, const vec_t &b, param_t &pa)
virtual int minteg_err (func_t &func, size_t ndim, const vec_t &a, const vec_t &b, param_t &pa, double &res, double &err)
double get_error ()
 Return the error in the result from the last call to minteg() or minteg_err().
const char * type ()
 Return string denoting type ("multi_inte").

Data Fields

int verbose
 Verbosity.
double tolf
 The maximum "uncertainty" in the value of the integral (default $ 10^{-8} $).

Protected Attributes

double interror
 The uncertainty for the last integration computation.

Member Function Documentation

double get_error (  )  [inline]

Return the error in the result from the last call to minteg() or minteg_err().

This will quietly return zero if no integrations have been performed.

Definition at line 94 of file multi_inte.h.


The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.