unconstrainedSmoother.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_UNCONSTRAINEDSMOOTHER_HPP
2 #define JULIAN_UNCONSTRAINEDSMOOTHER_HPP
3 
9 #include <gsl/gsl_multifit_nlin.h>
10 
11 namespace julian {
12 namespace ir {
13 
24  public:
25  UnconstrainedSmoother(SmartPointer<SmootherCostFunction> cost_function, double lambda):
26  cost_function_(cost_function), lambda_(lambda) {};
27 
28  virtual void calculate(const std::vector<SmartPointer<BuildingBlock> >& instruments,
29  const CurveSettings& settings,
30  SmartPointer<Curve>& discounting_curve,
31  SmartPointer<Curve>& projection_curve);
32 
33  virtual std::vector<double> getDF() const;
34  virtual std::vector<Date> getDates() const;
35  virtual UnconstrainedSmoother* clone() const;
36  virtual ~UnconstrainedSmoother(){};
37 
38  std::string info() const;
39 
40  private:
41  std::vector<double> DFs_;
42  std::vector<Date> dates_;
44  double lambda_;
45 
46  };
47 } // namespace ir
48 } // namespace julian
49 
50 #endif
51 
52 
53 
54 
55 
std::string info() const
returns name of estimator
Definition: unconstrainedSmoother.cpp:23
File containing definition of interest rates curve building block.
virtual void calculate(const std::vector< SmartPointer< BuildingBlock > > &instruments, const CurveSettings &settings, SmartPointer< Curve > &discounting_curve, SmartPointer< Curve > &projection_curve)
estimates the curve
Definition: unconstrainedSmoother.cpp:27
virtual UnconstrainedSmoother * clone() const
virtual copy constructor
Definition: unconstrainedSmoother.cpp:11
std::vector< Date > dates_
Grid dates of resulting curve.
Definition: unconstrainedSmoother.hpp:42
Definition: cadHoliday.cpp:3
Class defines the interface of algorithms that perform estimation of interest rate curve (see Interpo...
Definition: irCurveEstimator.hpp:23
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
File contains interface of cost function used by interest rate curve smoothers.
File contains interface of algorithms that performs interest rate curve estimations.
SmartPointer< SmootherCostFunction > cost_function_
Cost Function.
Definition: unconstrainedSmoother.hpp:43
File contains definition of swap interpolated curve class.
virtual std::vector< Date > getDates() const
returns dates
Definition: unconstrainedSmoother.cpp:19
Structure holding settings of ir::InterpolatedCurve.
Definition: curveSettings.hpp:26
File contains definition of structure holding settings of ir::InterpolatedCurve.
Definition: unconstrainedSmoother.hpp:23
virtual std::vector< double > getDF() const
returns DFs
Definition: unconstrainedSmoother.cpp:15
std::vector< double > DFs_
Vector holding the Discount Factors being result of estimation.
Definition: unconstrainedSmoother.hpp:41