Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

QuantLib::SimpsonIntegral Class Reference

#include <simpsonintegral.hpp>

Inheritance diagram for QuantLib::SimpsonIntegral:

QuantLib::TrapezoidIntegral< IntegrationPolicy >

List of all members.


Detailed Description

Integral of a one-dimensional function.

Test:
the correctness of the result is tested by checking it against known good values.

Definition at line 36 of file simpsonintegral.hpp.


Public Member Functions

Real absoluteError () const
virtual bool integrationSuccess () const
Size numberOfEvaluations () const
Real operator() (const boost::function< Real(Real)> &f, Real a, Real b) const
 SimpsonIntegral (Real accuracy, Size maxIterations)
Inspectors
Real absoluteAccuracy () const
Size maxEvaluations () const
Modifiers
void setAbsoluteAccuracy (Real)
void setMaxEvaluations (Size)

Protected Member Functions

void increaseNumberOfEvaluations (Size increase) const
Real integrate (const boost::function< Real(Real)> &f, Real a, Real b) const
void setAbsoluteError (Real error) const
void setNumberOfEvaluations (Size evaluations) const

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

Generated by  Doxygen 1.6.0   Back to index