qqbarthreshold is hosted by Hepforge, IPPP Durham
QQbar_threshold
integrator< Integrand > Class Template Reference

Class for integrating a function of type Integrand. More...

Public Member Functions

 integrator (Integrand in)
 Constructor. More...
 
double integrate (double a, double b, double epsabs=10e-8, double epsrel=10e-6)
 Integrate over the integrand specified during construction. More...
 
double get_error () const
 Obtain absolute error of last integration.
 
double get_num_evals () const
 Obtain number of evaluations during last integration.
 

Detailed Description

template<class Integrand>
class QQbar_threshold::integrator< Integrand >

Class for integrating a function of type Integrand.

The function has to be real-valued.

Constructor & Destructor Documentation

◆ integrator()

integrator ( Integrand  in)
inline

Constructor.

Parameters
inThe integrand function.

Member Function Documentation

◆ integrate()

double integrate ( double  a,
double  b,
double  epsabs = 10e-8,
double  epsrel = 10e-6 
)
inline

Integrate over the integrand specified during construction.

Parameters
aLower bound of the integration.
bUpper bound of the integration.
epsabsAbsolute accuracy
epsrelRelative accuracy
Returns
The integral from a to b with the specified accuracy.