QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
GaussLegendreIntegration Class Reference

Gauss-Legendre integration. More...

#include <ql/math/integrals/gaussianquadratures.hpp>

Inheritance diagram for GaussLegendreIntegration:

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 Arrayweights ()
const Arrayx ()

Additional Inherited Members

Protected Attributes inherited from GaussianQuadrature
Array x_
Array w_

Detailed Description

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 \]