constrainedSmoother.hpp
Go to the documentation of this file.
32 ConstrainedSmoother(SmartPointer<SmootherCostFunction> cf, const std::vector<double>& lT, const std::vector<double>& uT, int number_of_iterations);
33 ConstrainedSmoother(SmartPointer<SmootherCostFunction> cf, double tolerance, int number_of_iterations);
35 virtual void calculate(const std::vector<SmartPointer<BuildingBlock> >& instruments, const CurveSettings& settings,
46 arma::mat calculateJacobian(SmartPointer<ir::Curve>, SmartPointer<ir::Curve>, InterpolatedCurve, const std::vector<SmartPointer<BuildingBlock> >&);
47 arma::mat calculateParRates(const SmartPointer<ir::Curve>&, const SmartPointer<ir::Curve>&, const SmartPointer<ir::Curve>&, const std::vector<SmartPointer<BuildingBlock> >&);
virtual void calculate(const std::vector< SmartPointer< BuildingBlock > > &instruments, const CurveSettings &settings, SmartPointer< ir::Curve > &discounting_curve, SmartPointer< ir::Curve > &projection_curve)
Estimates the curve.
Definition: constrainedSmoother.cpp:40
arma::mat calculateParRates(const SmartPointer< ir::Curve > &, const SmartPointer< ir::Curve > &, const SmartPointer< ir::Curve > &, const std::vector< SmartPointer< BuildingBlock > > &)
Calculates the vector of par rates for instruments.
Definition: constrainedSmoother.cpp:173
File containing definition of interest rates curve building block.
Definition: cadHoliday.cpp:3
virtual ConstrainedSmoother * clone() const
Virtual Copy Constructor.
Definition: constrainedSmoother.cpp:113
Class defines the interface of algorithms that perform estimation of interest rate curve (see Interpo...
Definition: irCurveEstimator.hpp:23
arma::mat calculateJacobian(SmartPointer< ir::Curve >, SmartPointer< ir::Curve >, InterpolatedCurve, const std::vector< SmartPointer< BuildingBlock > > &)
Method used by SQP algorithm to calculate Jacobian for constrains' approximation. ...
Definition: constrainedSmoother.cpp:126
std::vector< Date > dates_
Grid dates of resulting curve.
Definition: constrainedSmoother.hpp:61
File contains interface of cost function used by interest rate curve smoothers.
File contains definition of date class.
virtual std::string info() const
Returns estimator's name.
Definition: constrainedSmoother.cpp:119
std::vector< double > lower_tolerance_
Lower tolerances for par rate generated by curve.
Definition: constrainedSmoother.hpp:50
File contains interface of algorithms that performs interest rate curve estimations.
double tolerance_
Tolerance for par rate generated by curve.
Definition: constrainedSmoother.hpp:56
std::vector< double > upper_tolerance_
Upper tolerances for par rate generated by curve.
Definition: constrainedSmoother.hpp:54
ConstrainedSmoother(SmartPointer< SmootherCostFunction > cf, const std::vector< double > &lT, const std::vector< double > &uT, int number_of_iterations)
Constructor.
Definition: constrainedSmoother.cpp:19
The object models the interest rate curve.
Definition: interpolatedCurve.hpp:42
Structure holding settings of ir::InterpolatedCurve.
Definition: curveSettings.hpp:26
virtual std::vector< double > getDF() const
Returns estimated DF.
Definition: constrainedSmoother.cpp:101
File contains definition of tenor class.
virtual std::vector< Date > getDates() const
Returns grid dates of the curve.
Definition: constrainedSmoother.cpp:107
SmartPointer< SmootherCostFunction > cost_function_
Cost Function.
Definition: constrainedSmoother.hpp:49
int number_of_iterations_
Number of iterations of Sequential Quadratic Programming.
Definition: constrainedSmoother.hpp:55
std::vector< double > DFs_
Vector holding the Discount Factors being result of estimation.
Definition: constrainedSmoother.hpp:60