24#ifndef quantext_model_parametrization_hpp
25#define quantext_model_parametrization_hpp
27#include <ql/currency.hpp>
28#include <ql/math/array.hpp>
63 virtual const Currency&
currency()
const;
75 virtual const QuantLib::ext::shared_ptr<Parameter>
parameter(
const Size)
const;
80 virtual void update()
const;
86 virtual Real
direct(
const Size,
const Real x)
const;
87 virtual Real
inverse(
const Size,
const Real y)
const;
93 Time
tr(
const Time t)
const;
94 Time
tl(
const Time t)
const;
95 Time
tr2(
const Time t)
const;
96 Time
tm2(
const Time t)
const;
97 Time
tl2(
const Time t)
const;
131 const Array& tmp =
parameter(i)->params();
132 Array res(tmp.size());
133 for (Size ii = 0; ii < res.size(); ++ii) {
134 res[ii] =
direct(i, tmp[ii]);
virtual const Array & parameterTimes(const Size) const
virtual const QuantLib::ext::shared_ptr< Parameter > parameter(const Size) const
const std::string & name() const
const QuantLib::ext::shared_ptr< Parameter > emptyParameter_
Time tl(const Time t) const
Time tm2(const Time t) const
virtual const Currency & currency() const
virtual Real inverse(const Size, const Real y) const
Time tl2(const Time t) const
virtual Size numberOfParameters() const
Time tr(const Time t) const
virtual ~Parametrization()
virtual void update() const
virtual Real direct(const Size, const Real x) const
virtual Array parameterValues(const Size) const
Time tr2(const Time t) const
parameter giving access to calibration machinery