Numerical convolution solver for the LGM model. More...
#include <qle/models/lgmconvolutionsolver2.hpp>
Inheritance diagram for LgmConvolutionSolver2:
Collaboration diagram for LgmConvolutionSolver2:Public Member Functions | |
| LgmConvolutionSolver2 (const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > &model, const Real sy, const Size ny, const Real sx, const Size nx) | |
| Size | gridSize () const override |
| RandomVariable | stateGrid (const Real t) const override |
| RandomVariable | rollback (const RandomVariable &v, const Real t1, const Real t0, Size steps=Null< Size >()) const override |
| const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model () const override |
Public Member Functions inherited from LgmBackwardSolver | |
| virtual | ~LgmBackwardSolver () |
| virtual Size | gridSize () const =0 |
| virtual RandomVariable | stateGrid (const Real t) const =0 |
| virtual RandomVariable | rollback (const RandomVariable &v, const Real t1, const Real t0, Size steps=Null< Size >()) const =0 |
| virtual const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model () const =0 |
Private Attributes | |
| QuantLib::ext::shared_ptr< LinearGaussMarkovModel > | model_ |
| int | mx_ |
| int | my_ |
| int | nx_ |
| Real | h_ |
| std::vector< Real > | y_ |
| std::vector< Real > | w_ |
Numerical convolution solver for the LGM model.
Reference: Hagan, Methodology for callable swaps and Bermudan exercise into swaptions
Definition at line 37 of file lgmconvolutionsolver2.hpp.
| LgmConvolutionSolver2 | ( | const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model, |
| const Real | sy, | ||
| const Size | ny, | ||
| const Real | sx, | ||
| const Size | nx | ||
| ) |
Definition at line 25 of file lgmconvolutionsolver2.cpp.
|
overridevirtual |
|
overridevirtual |
Implements LgmBackwardSolver.
Definition at line 60 of file lgmconvolutionsolver2.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements LgmBackwardSolver.
Definition at line 71 of file lgmconvolutionsolver2.cpp.
Here is the call graph for this function:
|
overridevirtual |
|
private |
Definition at line 49 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 50 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 50 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 50 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 51 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 52 of file lgmconvolutionsolver2.hpp.
|
private |
Definition at line 52 of file lgmconvolutionsolver2.hpp.