Deterministic Gaussian Sampling
Loading...
Searching...
No Matches
GslQuadratureAdaptiveGaussKronrod Class Reference

helper class to use GSL adaptive Gauss-Kronrod quadrature More...

#include <gsl_quadrature_adaptive_gauss_kronrod.h>

Public Types

using fT = double(*)(double x, void *params)
 

Public Member Functions

 GslQuadratureAdaptiveGaussKronrod (double epsabs=0.00, double epsrel=1e-10)
 Construct a new Gsl Quadrature Adaptive Gauss Kronrod object.
 
 ~GslQuadratureAdaptiveGaussKronrod ()
 Destroy the Gsl Quadrature Adaptive Gauss Kronrod object.
 
bool integrate (fT f, void *params, double lowerLimit, double upperLimit, double *result, double *abserr) const
 perform the integration using GSL adaptive Gauss-Kronrod
 

Detailed Description

helper class to use GSL adaptive Gauss-Kronrod quadrature

Constructor & Destructor Documentation

◆ GslQuadratureAdaptiveGaussKronrod()

GslQuadratureAdaptiveGaussKronrod::GslQuadratureAdaptiveGaussKronrod ( double  epsabs = 0.00,
double  epsrel = 1e-10 
)
inline

Construct a new Gsl Quadrature Adaptive Gauss Kronrod object.

Parameters
epsabsabsolute error tolerance
epsrelrelative error tolerance

Member Function Documentation

◆ integrate()

bool GslQuadratureAdaptiveGaussKronrod::integrate ( fT  f,
void params,
double  lowerLimit,
double  upperLimit,
double result,
double abserr 
) const
inline

perform the integration using GSL adaptive Gauss-Kronrod

Parameters
ffunction to be integrated
paramsparameters for the function to be integrated
lowerLimitlower limit of the integration
upperLimitupper limit of the integration
resultresult of the integration
abserrabsolute error of the integration
Returns
true, if the integration was successful within the given tolerances, false otherwise

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