Numerical convolution solver for the LGM model. More...
#include <qle/pricingengines/lgmconvolutionsolver.hpp>
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.
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.
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.