FX Black Scholes parametrizations. More...
#include <qle/models/fxbsparametrization.hpp>
Public Member Functions | |
FxBsParametrization (const Currency &foreignCurrency, const Handle< Quote > &fxSpotToday) | |
virtual Real | variance (const Time t) const =0 |
virtual Real | sigma (const Time t) const |
virtual Real | stdDeviation (const Time t) const |
const Handle< Quote > | fxSpotToday () const |
Size | numberOfParameters () 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 |
Private Attributes | |
const Handle< Quote > | fxSpotToday_ |
Additional Inherited Members | |
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 |
Protected Attributes inherited from Parametrization | |
const Real | h_ |
const Real | h2_ |
FX Black Scholes parametrizations.
Base class for FX Black Scholes parametrizations
Definition at line 38 of file fxbsparametrization.hpp.
FxBsParametrization | ( | const Currency & | foreignCurrency, |
const Handle< Quote > & | fxSpotToday | ||
) |
The currency refers to the foreign currency, the spot is as of today (i.e. the discounted spot)
Definition at line 23 of file fxbsparametrization.cpp.
|
pure virtual |
must satisfy variance(0) = 0.0, variance'(t) >= 0
Implemented in FxBsConstantParametrization, and FxBsPiecewiseConstantParametrization.
|
virtual |
is supposed to be positive
Reimplemented in FxBsConstantParametrization, and FxBsPiecewiseConstantParametrization.
Definition at line 58 of file fxbsparametrization.hpp.
|
virtual |
Definition at line 62 of file fxbsparametrization.hpp.
const Handle< Quote > fxSpotToday | ( | ) | const |
Definition at line 64 of file fxbsparametrization.hpp.
|
overridevirtual |
the number of parameters in this parametrization
Reimplemented from Parametrization.
Definition at line 50 of file fxbsparametrization.hpp.
|
private |
Definition at line 53 of file fxbsparametrization.hpp.