Numerical convolution solver for the LGM model. More...
#include <qle/pricingengines/lgmconvolutionsolver.hpp>
Inheritance diagram for LgmConvolutionSolver:
Collaboration diagram for LgmConvolutionSolver:Public Member Functions | |
| LgmConvolutionSolver (const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > &model, const Real sy, const Size ny, const Real sx, const Size nx) | |
| Numerical convolution solver for the LGM model. More... | |
| Size | gridSize () const |
| std::vector< Real > | stateGrid (const Real t) const |
| template<typename ValueType = Real> | |
| std::vector< ValueType > | rollback (const std::vector< ValueType > &v, const Real t1, const Real t0, const ValueType zero=ValueType(0.0)) const |
| const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model () const |
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 36 of file lgmconvolutionsolver.hpp.
| LgmConvolutionSolver | ( | const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model, |
| const Real | sy, | ||
| const Size | ny, | ||
| const Real | sx, | ||
| const Size | nx | ||
| ) |
Numerical convolution solver for the LGM model.
Reference: Hagan, Methodology for callable swaps and Bermudan exercise into swaptions
Definition at line 30 of file lgmconvolutionsolver.cpp.
| Size gridSize | ( | ) | const |
| std::vector< Real > stateGrid | ( | const Real | t | ) | const |
Definition at line 65 of file lgmconvolutionsolver.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< ValueType > rollback | ( | const std::vector< ValueType > & | v, |
| const Real | t1, | ||
| const Real | t0, | ||
| const ValueType | zero = ValueType(0.0) |
||
| ) | const |
Definition at line 65 of file lgmconvolutionsolver.hpp.
Here is the caller graph for this function:| const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & model | ( | ) | const |
|
private |
Definition at line 56 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 57 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 57 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 57 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 58 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 59 of file lgmconvolutionsolver.hpp.
|
private |
Definition at line 59 of file lgmconvolutionsolver.hpp.