|
QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
|
Svensson Fitting method. More...
#include <ql/termstructures/yield/nonlinearfittingmethods.hpp>
Public Member Functions | |
| SvenssonFitting (const Array &weights=Array(), const ext::shared_ptr< OptimizationMethod > &optimizationMethod={}, const Array &l2=Array(), Real minCutoffTime=0.0, Real maxCutoffTime=QL_MAX_REAL, Constraint constraint=NoConstraint()) | |
| SvenssonFitting (const Array &weights, const Array &l2, Real minCutoffTime=0.0, Real maxCutoffTime=QL_MAX_REAL, Constraint constraint=NoConstraint()) | |
| std::unique_ptr< FittedBondDiscountCurve::FittingMethod > | clone () const override |
| clone of the current object | |
| Public Member Functions inherited from FittedBondDiscountCurve::FittingMethod | |
| Array | solution () const |
| output array of results of optimization problem | |
| Integer | numberOfIterations () const |
| final number of iterations used in the optimization problem | |
| Real | minimumCostValue () const |
| final value of cost function after optimization | |
| EndCriteria::Type | errorCode () const |
| error code of the optimization | |
| bool | constrainAtZero () const |
| return whether there is a constraint at zero | |
| Array | weights () const |
| return weights being used | |
| Array | l2 () const |
| return l2 penalties being used | |
| ext::shared_ptr< OptimizationMethod > | optimizationMethod () const |
| return optimization method being used | |
| const Constraint & | constraint () const |
| return optimization contraint | |
| DiscountFactor | discount (const Array &x, Time t) const |
| open discountFunction to public | |
Additional Inherited Members | |
| Protected Member Functions inherited from FittedBondDiscountCurve::FittingMethod | |
| FittingMethod (bool constrainAtZero=true, const Array &weights=Array(), ext::shared_ptr< OptimizationMethod > optimizationMethod=ext::shared_ptr< OptimizationMethod >(), Array l2=Array(), Real minCutoffTime=0.0, Real maxCutoffTime=QL_MAX_REAL, Constraint constraint=NoConstraint()) | |
| constructors | |
| virtual void | init () |
| rerun every time instruments/referenceDate changes | |
| Protected Attributes inherited from FittedBondDiscountCurve::FittingMethod | |
| bool | constrainAtZero_ |
| constrains discount function to unity at \( T=0 \), if true | |
| FittedBondDiscountCurve * | curve_ |
| internal reference to the FittedBondDiscountCurve instance | |
| Array | solution_ |
| solution array found from optimization, set in calculate() | |
| Array | guessSolution_ |
| optional guess solution to be passed into constructor. | |
| ext::shared_ptr< FittingCost > | costFunction_ |
| base class sets this cost function used in the optimization routine | |
Svensson Fitting method.
Fits a discount function to the form \( d(t) = e^{-r t}, \) where the zero rate \(r\) is defined as
\[r \equiv c_0 + (c_1 + c_2) \left( \frac {1 - e^{-\kappa t}}{\kappa t} \right) - c_2 e^{ - \kappa t} + c_3 \left( \frac{1 - e^{-\kappa_1 t}}{\kappa_1 t} -e^{-\kappa_1 t} \right). \]
See: Svensson, L. (1994). Estimating and interpreting forward interest rates: Sweden 1992-4. Discussion paper, Centre for Economic Policy Research(1051).
|
overridevirtual |
clone of the current object
Implements FittedBondDiscountCurve::FittingMethod.