# QuantLib_GaussKronrodNonAdaptive man page

GaussKronrodNonAdaptive — Integral of a 1-dimensional function using the Gauss-Kronrod methods.

## Synopsis

`#include <ql/math/integrals/kronrodintegral.hpp>`

Inherits Integrator.

### Public Member Functions

**GaussKronrodNonAdaptive** (**Real** absoluteAccuracy, **Size** maxEvaluations, **Real** relativeAccuracy)

void **setRelativeAccuracy** (**Real**)**Real relativeAccuracy** () const

### Protected Member Functions

**Real integrate** (const boost::function< **Real**(**Real**)> &f, **Real** a, **Real** b) const

## Detailed Description

Integral of a 1-dimensional function using the Gauss-Kronrod methods.

This class provide a non-adaptive integration procedure which uses fixed Gauss-Kronrod abscissae to sample the integrand at a maximum of 87 points. It is provided for fast integration of smooth functions.

This function applies the Gauss-Kronrod 10-point, 21-point, 43-point and 87-point integration rules in succession until an estimate of the integral of f over (a, b) is achieved within the desired absolute and relative error limits, epsabs and epsrel. The function returns the final approximation, result, an estimate of the absolute error, abserr and the number of function evaluations used, neval. The Gauss-Kronrod rules are designed in such a way that each rule uses all the results of its predecessors, in order to minimize the total number of function evaluations.

## Author

Generated automatically by Doxygen for QuantLib from the source code.

## Referenced By

The man pages GaussKronrodNonAdaptive(3), relativeAccuracy(3) and setRelativeAccuracy(3) are aliases of QuantLib_GaussKronrodNonAdaptive(3).