QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GaussLaguerreSinePolynomial< mp_real > Class Template Reference

Gauss-Laguerre Sine integration. More...

#include <gausslaguerrecosinepolynomial.hpp>

+ Inheritance diagram for GaussLaguerreSinePolynomial< mp_real >:
+ Collaboration diagram for GaussLaguerreSinePolynomial< mp_real >:

Public Member Functions

 GaussLaguerreSinePolynomial (Real u)
 
mp_real moment (Size n) const override
 
Real w (Real x) const override
 
- Public Member Functions inherited from GaussLaguerreTrigonometricBase< mp_real >
 GaussLaguerreTrigonometricBase (Real u)
 
- Public Member Functions inherited from MomentBasedGaussianPolynomial< mp_real >
 MomentBasedGaussianPolynomial ()
 
Real mu_0 () const override
 
Real alpha (Size i) const override
 
Real beta (Size i) const override
 
virtual mp_real moment (Size i) const =0
 
Real alpha (Size u) const
 
Real beta (Size u) const
 
Real mu_0 () const
 
- Public Member Functions inherited from GaussianOrthogonalPolynomial
virtual ~GaussianOrthogonalPolynomial ()=default
 
virtual Real mu_0 () const =0
 
virtual Real alpha (Size i) const =0
 
virtual Real beta (Size i) const =0
 
virtual Real w (Real x) const =0
 
Real value (Size i, Real x) const
 
Real weightedValue (Size i, Real x) const
 

Protected Member Functions

mp_real m0 () const override
 
mp_real m1 () const override
 
- Protected Member Functions inherited from GaussLaguerreTrigonometricBase< mp_real >
virtual mp_real m0 () const =0
 
virtual mp_real m1 () const =0
 
mp_real moment_ (Size n) const
 
mp_real fact (Size n) const
 

Private Attributes

const Real m0_
 

Additional Inherited Members

- Protected Attributes inherited from GaussLaguerreTrigonometricBase< mp_real >
const Real u_
 

Detailed Description

template<class mp_real>
class QuantLib::GaussLaguerreSinePolynomial< mp_real >

Gauss-Laguerre Sine integration.

This class performs a 1-dimensional Gauss-Laguerre-Cosine integration.

\[ \int_{0}^{\inf} f(x) \mathrm{d}x \]

The weighting function is

\[ w(x;u)=e^{-x}*\sin{u*x} \]

Definition at line 123 of file gausslaguerrecosinepolynomial.hpp.

Constructor & Destructor Documentation

◆ GaussLaguerreSinePolynomial()

Definition at line 126 of file gausslaguerrecosinepolynomial.hpp.

Member Function Documentation

◆ moment()

mp_real moment ( Size  n) const
overridevirtual

Implements MomentBasedGaussianPolynomial< mp_real >.

Definition at line 130 of file gausslaguerrecosinepolynomial.hpp.

+ Here is the call graph for this function:

◆ w()

Real w ( Real  x) const
overridevirtual

Implements GaussianOrthogonalPolynomial.

Definition at line 131 of file gausslaguerrecosinepolynomial.hpp.

◆ m0()

mp_real m0 ( ) const
overrideprotectedvirtual

◆ m1()

mp_real m1 ( ) const
overrideprotectedvirtual

Implements GaussLaguerreTrigonometricBase< mp_real >.

Definition at line 135 of file gausslaguerrecosinepolynomial.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m0_

const Real m0_
private

Definition at line 140 of file gausslaguerrecosinepolynomial.hpp.