Public Member Functions | Protected Attributes | List of all members
o2scl::inte_kronrod_boost< func_t, rule, fp_t > Class Template Reference

Gauss-Kronrod integration class (Boost) More...

#include <inte_kronrod_boost.h>

Inheritance diagram for o2scl::inte_kronrod_boost< func_t, rule, fp_t >:
o2scl::inte< funct, double >

Detailed Description

template<class func_t = funct, size_t rule = 15, class fp_t = double>
class o2scl::inte_kronrod_boost< func_t, rule, fp_t >

The rule parameter should be either 15, 31, 41, 51, or 61.

This class calls the error handler if the error returned by boost is larger than inte::tol_rel .

Idea for Future:
Figure out what to do with L1norm. The boost documentation claims that "the error estimates provided by the routine are woefully pessimistic" and the integral appears to be correct, but the boost documentation also says "if there is a significant difference between this [the L1 norm] and the returned value, then the result is likely to be ill-conditioned". It would be nice to test L1 norm in some reasonable way.

Definition at line 59 of file inte_kronrod_boost.h.

Public Member Functions

void set_max_depth (size_t md)
 
virtual int integ_err (func_t &func, fp_t a, fp_t b, fp_t &res, fp_t &err)
 Integrate function func from a to b and place the result in res and the error in err.
 
- Public Member Functions inherited from o2scl::inte< funct, double >
virtual double integ (funct &func, double a, double b)
 Integrate function func from a to b.
 
virtual int integ_err (funct &func, double a, double b, double &res, double &err)=0
 Integrate function func from a to b and place the result in res and the error in err.
 
double get_error ()
 Return the numerically estimated error in the result from the last call to integ() More...
 
virtual const char * type ()
 Return string denoting type ("inte")
 

Protected Attributes

size_t max_depth
 Maximum depth.
 
fp_t L1norm
 L1 norm.
 
- Protected Attributes inherited from o2scl::inte< funct, double >
double interror
 The uncertainty for the last integration computation.
 

Additional Inherited Members

- Public Attributes inherited from o2scl::inte< funct, double >
int verbose
 Verbosity.
 
size_t last_iter
 The most recent number of iterations taken.
 
double tol_rel
 The maximum relative uncertainty in the value of the integral (default $ 10^{-8} $)
 
double tol_abs
 The maximum absolute uncertainty in the value of the integral (default $ 10^{-8} $)
 
bool err_nonconv
 If true, call the error handler if the routine does not converge or reach the desired tolerance (default true) More...
 

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).