inte Class Template Reference

#include <inte.h>

Inheritance diagram for inte:

cern_adapt cern_cauchy cern_gauss cern_gauss56 gsl_inte_kronrod gsl_inte_qng gsl_inte_qag gsl_inte_singular gsl_inte_qags gsl_inte_transform gsl_inte_cheb gsl_inte_qagi gsl_inte_qagil gsl_inte_qagiu gsl_inte_qawc gsl_inte_qawo_sin gsl_inte_qaws gsl_inte_qawf_sin gsl_inte_qawo_cos gsl_inte_qawf_cos

Detailed Description

template<class param_t, class func_t>
class inte< param_t, func_t >

Base integration class.

Definition at line 35 of file inte.h.


Public Member Functions

virtual double integ (func_t &func, double a, double b, param_t &pa)
 Integrate function func from a to b.
virtual int integ_err (func_t &func, double a, double b, param_t &pa, double &res, double &err)
 Integrate function func from a to b and place the result in res and the error in err.
double get_error ()
 Return the error in the result from the last call to integ().
virtual const char * type ()
 Return string denoting type ("inte").

Data Fields

int verbose
 Verbosity.
int last_iter
 The most recent number of iterations taken.
double tolf
 The maximum relative uncertainty in the value of the integral (default $ 10^{-8} $).
double tolx
 The maximum absolute uncertainty in the value of the integral (default $ 10^{-8} $).

Protected Attributes

double interror
 The uncertainty for the last integration computation.

Member Function Documentation

virtual int integ_err ( func_t &  func,
double  a,
double  b,
param_t &  pa,
double &  res,
double &  err 
) [inline, virtual]

Integrate function func from a to b and place the result in res and the error in err.

Ideally, if this function succeeds, then err should be less than or close to tolf.

Reimplemented in cern_adapt, cern_cauchy, cern_gauss, cern_gauss56, gsl_inte_qag, gsl_inte_qagi, gsl_inte_qagil, gsl_inte_qagiu, gsl_inte_qags, gsl_inte_qawc, gsl_inte_qawf_sin, gsl_inte_qawf_cos, gsl_inte_qawo_sin, gsl_inte_qawo_cos, gsl_inte_qaws, and gsl_inte_qng.

Definition at line 77 of file inte.h.

double get_error (  )  [inline]

Return the error in the result from the last call to integ().

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

Definition at line 88 of file 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.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page