QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Gauss-Legendre integration. More...
#include <gaussianquadratures.hpp>
Public Member Functions | |
GaussLegendreIntegration (Size n) | |
Public Member Functions inherited from GaussianQuadrature | |
GaussianQuadrature (Size n, const GaussianOrthogonalPolynomial &p) | |
template<class F > | |
Real | operator() (const F &f) const |
Size | order () const |
const Array & | weights () |
const Array & | x () |
Additional Inherited Members | |
Protected Attributes inherited from GaussianQuadrature | |
Array | x_ |
Array | w_ |
Gauss-Legendre integration.
This class performs a 1-dimensional Gauss-Legendre integration.
\[ \int_{-1}^{1} f(x) \mathrm{d}x \]
The weighting function is
\[ w(x)=1 \]
Definition at line 156 of file gaussianquadratures.hpp.
|
explicit |
Definition at line 158 of file gaussianquadratures.hpp.