CIR++ Constant Parametrization.
More...
#include <qle/models/cirppconstantparametrization.hpp>
|
| | CirppConstantParametrization (const Currency ¤cy, const Handle< TS > &termStructure, const Real kappa, const Real theta, const Real sigma, const Real y0, const bool shifted, const std::string &name=std::string()) |
| |
| Real | kappa (const Time t) const |
| |
| Real | theta (const Time t) const |
| |
| Real | sigma (const Time t) const |
| |
| Real | y0 (const Time t) const |
| |
| const QuantLib::ext::shared_ptr< Parameter > | parameter (const Size) const |
| |
| | CirppParametrization (const Currency ¤cy, const Handle< TS > &termStructure, bool shifted, const std::string &name=std::string()) |
| |
| virtual Real | kappa (const Time t) const =0 |
| |
| virtual Real | theta (const Time t) const =0 |
| |
| virtual Real | sigma (const Time t) const =0 |
| |
| virtual Real | y0 (const Time t) const =0 |
| |
| const Handle< TS > | termStructure () const |
| |
| const bool | shifted () const |
| |
| Size | numberOfParameters () const override |
| |
| | 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 |
| |
|
| Real | direct (const Size i, const Real x) const |
| |
| Real | inverse (const Size j, const Real y) const |
| |
| 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 |
| |
|
| const Real | h_ |
| |
| const Real | h2_ |
| |
template<class TS>
class QuantExt::CirppConstantParametrization< TS >
CIR++ Constant Parametrization.
Definition at line 36 of file cirppconstantparametrization.hpp.
◆ CirppConstantParametrization()
| CirppConstantParametrization |
( |
const Currency & |
currency, |
|
|
const Handle< TS > & |
termStructure, |
|
|
const Real |
kappa, |
|
|
const Real |
theta, |
|
|
const Real |
sigma, |
|
|
const Real |
y0, |
|
|
const bool |
shifted, |
|
|
const std::string & |
name = std::string() |
|
) |
| |
Definition at line 60 of file cirppconstantparametrization.hpp.
67 kappa_(QuantLib::ext::make_shared<PseudoParameter>(1)),
68 theta_(QuantLib::ext::make_shared<PseudoParameter>(1)),
sigma_(QuantLib::ext::make_shared<PseudoParameter>(1)),
69 y0_(QuantLib::ext::make_shared<PseudoParameter>(1)) {
74}
Real y0(const Time t) const
const QuantLib::ext::shared_ptr< PseudoParameter > theta_
Real kappa(const Time t) const
Real theta(const Time t) const
const QuantLib::ext::shared_ptr< PseudoParameter > sigma_
const QuantLib::ext::shared_ptr< PseudoParameter > y0_
Real inverse(const Size j, const Real y) const
const QuantLib::ext::shared_ptr< PseudoParameter > kappa_
Real sigma(const Time t) const
const Handle< TS > termStructure() const
const bool shifted() const
const std::string & name() const
virtual const Currency & currency() const
◆ kappa()
| Real kappa |
( |
const Time |
t | ) |
const |
|
virtual |
◆ theta()
| Real theta |
( |
const Time |
t | ) |
const |
|
virtual |
◆ sigma()
| Real sigma |
( |
const Time |
t | ) |
const |
|
virtual |
◆ y0()
| Real y0 |
( |
const Time |
t | ) |
const |
|
virtual |
◆ parameter()
| const QuantLib::ext::shared_ptr< Parameter > parameter |
( |
const Size |
Size | ) |
const |
|
virtual |
the parameter storing the raw parameter values
Reimplemented from Parametrization.
Definition at line 103 of file cirppconstantparametrization.hpp.
103 {
104 QL_REQUIRE(i < 4, "parameter " << i << " does not exist, only have 0..3");
105 if (i == 0)
107 else if (i == 1)
109 else if (i == 2)
111 else
113}
◆ direct()
| Real direct |
( |
const Size |
Size, |
|
|
const Real |
x |
|
) |
| const |
|
protectedvirtual |
◆ inverse()
| Real inverse |
( |
const Size |
j, |
|
|
const Real |
y |
|
) |
| const |
|
protectedvirtual |
◆ kappa_
◆ theta_
◆ sigma_
◆ y0_