Numerical FD solver for the LGM model. More...
#include <qle/models/lgmfdsolver.hpp>
Inheritance diagram for LgmFdSolver:
Collaboration diagram for LgmFdSolver:Public Member Functions | |
| LgmFdSolver (const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > &model, const Real maxTime=50.0, const QuantLib::FdmSchemeDesc scheme=QuantLib::FdmSchemeDesc::Douglas(), const Size stateGridPoints=64, const Size timeStepsPerYear=24, const Real mesherEpsilon=1E-4) | |
| 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_ |
| Real | maxTime_ |
| QuantLib::FdmSchemeDesc | scheme_ |
| Size | stateGridPoints_ |
| Size | timeStepsPerYear_ |
| Real | mesherEpsilon_ |
| QuantLib::ext::shared_ptr< FdmMesher > | mesher_ |
| QuantLib::ext::shared_ptr< FdmLinearOpComposite > | operator_ |
| QuantLib::ext::shared_ptr< FdmBackwardSolver > | solver_ |
| RandomVariable | mesherLocations_ |
Numerical FD solver for the LGM model.
Definition at line 36 of file lgmfdsolver.hpp.
| LgmFdSolver | ( | const QuantLib::ext::shared_ptr< LinearGaussMarkovModel > & | model, |
| const Real | maxTime = 50.0, |
||
| const QuantLib::FdmSchemeDesc | scheme = QuantLib::FdmSchemeDesc::Douglas(), |
||
| const Size | stateGridPoints = 64, |
||
| const Size | timeStepsPerYear = 24, |
||
| const Real | mesherEpsilon = 1E-4 |
||
| ) |
Definition at line 28 of file lgmfdsolver.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements LgmBackwardSolver.
Definition at line 43 of file lgmfdsolver.cpp.
Here is the caller graph for this function:
|
overridevirtual |
|
overridevirtual |
Implements LgmBackwardSolver.
Definition at line 49 of file lgmfdsolver.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements LgmBackwardSolver.
Definition at line 47 of file lgmfdsolver.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 49 of file lgmfdsolver.hpp.
|
private |
Definition at line 50 of file lgmfdsolver.hpp.
|
private |
Definition at line 51 of file lgmfdsolver.hpp.
|
private |
Definition at line 52 of file lgmfdsolver.hpp.
|
private |
Definition at line 53 of file lgmfdsolver.hpp.
|
private |
Definition at line 54 of file lgmfdsolver.hpp.
|
mutableprivate |
Definition at line 56 of file lgmfdsolver.hpp.
|
mutableprivate |
Definition at line 57 of file lgmfdsolver.hpp.
|
mutableprivate |
Definition at line 58 of file lgmfdsolver.hpp.
|
private |
Definition at line 60 of file lgmfdsolver.hpp.