24#ifndef quantext_piecewiseconstant_fxbs_parametrization_hpp
25#define quantext_piecewiseconstant_fxbs_parametrization_hpp
42 const QuantLib::ext::shared_ptr<QuantLib::Constraint>& sigmaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>());
50 const std::vector<Date>& dates,
const Array&
sigma,
51 const Handle<YieldTermStructure>& domesticTermStructure,
52 const QuantLib::ext::shared_ptr<QuantLib::Constraint>& sigmaConstraint = QuantLib::ext::make_shared<QuantLib::NoConstraint>());
54 Real
variance(
const Time
t)
const override;
55 Real
sigma(
const Time
t)
const override;
57 const QuantLib::ext::shared_ptr<Parameter>
parameter(
const Size)
const override;
58 void update()
const override;
61 Real
direct(
const Size i,
const Real x)
const override;
62 Real
inverse(
const Size i,
const Real
y)
const override;
85 QL_REQUIRE(i == 0,
"parameter " << i <<
" does not exist, only have 0");
90 QL_REQUIRE(i == 0,
"parameter " << i <<
" does not exist, only have 0");
FX Black Scholes parametrizations.
const Handle< Quote > fxSpotToday() const
FX Black Scholes constant parametrization.
FxBsPiecewiseConstantParametrization(const Currency ¤cy, const Handle< Quote > &fxSpotToday, const std::vector< Date > &dates, const Array &sigma, const Handle< YieldTermStructure > &domesticTermStructure, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &sigmaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >())
FxBsPiecewiseConstantParametrization(const Currency ¤cy, const Handle< Quote > &fxSpotToday, const Array ×, const Array &sigma, const QuantLib::ext::shared_ptr< QuantLib::Constraint > &sigmaConstraint=QuantLib::ext::make_shared< QuantLib::NoConstraint >())
Real inverse(const Size i, const Real y) const override
Real variance(const Time t) const override
void update() const override
Real sigma(const Time t) const override
Real direct(const Size i, const Real x) const override
const Array & parameterTimes(const Size) const override
const QuantLib::ext::shared_ptr< Parameter > parameter(const Size) const override
void initialize(const Array &sigma)
virtual const Currency & currency() const
Piecewise Constant Helper 1.
Real y(const Time t) const
Real inverse(const Real y) const
const QuantLib::ext::shared_ptr< PseudoParameter > y_
Real int_y_sqr(const Time t) const
int_0^t y^2(s) ds
Real direct(const Real x) const
FX Black Scholes parametrization.
helper classes for piecewise constant parametrizations