LGM 1F Piecewise Constant Parametrization. More...
#include <qle/models/irlgm1fpiecewiseconstantparametrization.hpp>
Public Member Functions | |
Lgm1fPiecewiseConstantParametrization (const Currency ¤cy, const Handle< TS > &termStructure, const Array &alphaTimes, const Array &alpha, const Array &kappaTimes, const Array &kappa, const std::string &name=std::string(), const QuantLib::ext::shared_ptr< QuantLib::Constraint > &alphaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >(), const QuantLib::ext::shared_ptr< QuantLib::Constraint > &kappaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
Lgm1fPiecewiseConstantParametrization (const Currency ¤cy, const Handle< TS > &termStructure, const std::vector< Date > &alphaDates, const Array &alpha, const std::vector< Date > &kappaDates, const Array &kappa, const std::string &name=std::string(), const QuantLib::ext::shared_ptr< QuantLib::Constraint > &alphaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >(), const QuantLib::ext::shared_ptr< QuantLib::Constraint > &kappaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
Real | zeta (const Time t) const override |
Real | H (const Time t) const override |
Real | alpha (const Time t) const override |
Real | kappa (const Time t) const override |
Real | Hprime (const Time t) const override |
Real | Hprime2 (const Time t) const override |
const Array & | parameterTimes (const Size) const override |
const QuantLib::ext::shared_ptr< Parameter > | parameter (const Size) const override |
void | update () const override |
Public Member Functions inherited from Lgm1fParametrization< TS > | |
Lgm1fParametrization (const Currency ¤cy, const Handle< TS > &termStructure, const std::string &name=std::string()) | |
virtual Real | zeta (const Time t) const =0 |
virtual Real | H (const Time t) const =0 |
virtual Real | alpha (const Time t) const |
virtual Real | kappa (const Time t) const |
virtual Real | Hprime (const Time t) const |
virtual Real | Hprime2 (const Time t) const |
virtual Real | hullWhiteSigma (const Time t) const |
const Handle< TS > | termStructure () const |
Real | zetan (const Size n, const Time t, const QuantLib::ext::shared_ptr< Integrator > &integrator) |
Real & | shift () |
Real & | scaling () |
Size | numberOfParameters () const override |
void | update () const override |
Public Member Functions inherited from Parametrization | |
Parametrization (const Currency ¤cy, const std::string &name="") | |
virtual | ~Parametrization () |
virtual const Currency & | currency () const |
virtual const Array & | parameterTimes (const Size) const |
virtual Size | numberOfParameters () const |
virtual Array | parameterValues (const Size) const |
virtual const QuantLib::ext::shared_ptr< Parameter > | parameter (const Size) const |
virtual void | update () const |
const std::string & | name () const |
virtual Real | direct (const Size, const Real x) const |
virtual Real | inverse (const Size, const Real y) const |
Protected Member Functions | |
Real | direct (const Size i, const Real x) const override |
Real | inverse (const Size j, const Real y) const override |
Protected Member Functions inherited from Parametrization | |
Time | tr (const Time t) const |
Time | tl (const Time t) const |
Time | tr2 (const Time t) const |
Time | tm2 (const Time t) const |
Time | tl2 (const Time t) const |
Private Member Functions | |
void | initialize (const Array &alpha, const Array &kappa) |
Private Member Functions inherited from PiecewiseConstantHelper1 | |
PiecewiseConstantHelper1 (const Array &t, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &constraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
PiecewiseConstantHelper1 (const std::vector< Date > &dates, const Handle< YieldTermStructure > &yts, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &constraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
const Array & | t () const |
const QuantLib::ext::shared_ptr< Parameter > | p () const |
void | update () const |
Real | y (const Time t) const |
Real | int_y_sqr (const Time t) const |
int_0^t y^2(s) ds More... | |
Real | direct (const Real x) const |
Real | inverse (const Real y) const |
Private Member Functions inherited from PiecewiseConstantHelper2 | |
PiecewiseConstantHelper2 (const Array &t, const QuantLib::ext::shared_ptr< PseudoParameter > &y) | |
PiecewiseConstantHelper2 (const Array &t, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &constraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
PiecewiseConstantHelper2 (const std::vector< Date > &dates, const Handle< YieldTermStructure > &yts, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &constraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >()) | |
const Array & | t () const |
const QuantLib::ext::shared_ptr< Parameter > | p () const |
void | update () const |
Real | y (const Time t) const |
Real | exp_m_int_y (const Time t) const |
exp(int_0^t -y(s)) ds More... | |
Real | int_exp_m_int_y (const Time t) const |
int_0^t exp(int_0^s -y(u) du) ds More... | |
Real | direct (const Real x) const |
Real | inverse (const Real y) const |
Additional Inherited Members | |
Protected Attributes inherited from Lgm1fParametrization< TS > | |
Real | shift_ |
Real | scaling_ |
Protected Attributes inherited from Parametrization | |
const Real | h_ |
const Real | h2_ |
Private Attributes inherited from PiecewiseConstantHelper1 | |
const Array | t_ |
const QuantLib::ext::shared_ptr< PseudoParameter > | y_ |
Private Attributes inherited from PiecewiseConstantHelper2 | |
const Array | t_ |
const QuantLib::ext::shared_ptr< PseudoParameter > | y_ |
LGM 1F Piecewise Constant Parametrization.
Definition at line 36 of file irlgm1fpiecewiseconstantparametrization.hpp.
Lgm1fPiecewiseConstantParametrization | ( | const Currency & | currency, |
const Handle< TS > & | termStructure, | ||
const Array & | alphaTimes, | ||
const Array & | alpha, | ||
const Array & | kappaTimes, | ||
const Array & | kappa, | ||
const std::string & | name = std::string() , |
||
const QuantLib::ext::shared_ptr< QuantLib::Constraint > & | alphaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>() , |
||
const QuantLib::ext::shared_ptr< QuantLib::Constraint > & | kappaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>() |
||
) |
Definition at line 73 of file irlgm1fpiecewiseconstantparametrization.hpp.
Lgm1fPiecewiseConstantParametrization | ( | const Currency & | currency, |
const Handle< TS > & | termStructure, | ||
const std::vector< Date > & | alphaDates, | ||
const Array & | alpha, | ||
const std::vector< Date > & | kappaDates, | ||
const Array & | kappa, | ||
const std::string & | name = std::string() , |
||
const QuantLib::ext::shared_ptr< QuantLib::Constraint > & | alphaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>() , |
||
const QuantLib::ext::shared_ptr< QuantLib::Constraint > & | kappaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>() |
||
) |
Definition at line 85 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
zeta must satisfy zeta(0) = 0, zeta'(t) >= 0
Implements Lgm1fParametrization< TS >.
Definition at line 123 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
H must be such that H' does not change its sign
Implements Lgm1fParametrization< TS >.
Definition at line 127 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
Reimplemented from Lgm1fParametrization< TS >.
Definition at line 131 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
Reimplemented from Lgm1fParametrization< TS >.
Definition at line 135 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
Reimplemented from Lgm1fParametrization< TS >.
Definition at line 139 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
Reimplemented from Lgm1fParametrization< TS >.
Definition at line 143 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
the times associated to parameter i
Reimplemented from Parametrization.
Definition at line 153 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
the parameter storing the raw parameter values
Reimplemented from Parametrization.
Definition at line 162 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overridevirtual |
this method should be called when input parameters linked via references or pointers change in order to ensure consistent results
Reimplemented from Lgm1fParametrization< TS >.
Definition at line 147 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overrideprotectedvirtual |
transformations between raw and actual parameters
Reimplemented from Parametrization.
Definition at line 115 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
overrideprotectedvirtual |
Reimplemented from Parametrization.
Definition at line 119 of file irlgm1fpiecewiseconstantparametrization.hpp.
|
private |
Definition at line 96 of file irlgm1fpiecewiseconstantparametrization.hpp.