27 : absoluteAccuracy_(absoluteAccuracy),
28 maxEvaluations_(maxEvaluations) {
30 std::scientific <<
"required tolerance (" <<
Real absoluteAccuracy() const
Size numberOfEvaluations() const
Size maxEvaluations() const
void setMaxEvaluations(Size)
Integrator(Real absoluteAccuracy, Size maxEvaluations)
Real operator()(const ext::function< Real(Real)> &f, Real a, Real b) const
void increaseNumberOfEvaluations(Size increase) const
void setAbsoluteError(Real error) const
Real absoluteError() const
void setNumberOfEvaluations(Size evaluations) const
void setAbsoluteAccuracy(Real)
virtual Real integrate(const ext::function< Real(Real)> &f, Real a, Real b) const =0
virtual bool integrationSuccess() const
Classes and functions for error handling.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
ext::function< Real(Real)> b
std::size_t Size
size of a container
Integrators base class definition.