SmoothZeroCouponRates.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_SMOOTHZEROCOUPONRATES_HPP
2 #define JULIAN_SMOOTHZEROCOUPONRATES_HPP
3 
6 #include <armadillo>
7 
8 namespace julian {
9 namespace ir {
29  public:
31 
32  virtual arma::mat giveQmatrix(const InterpolatedCurve&) const;
33  virtual arma::mat giveCvector(const InterpolatedCurve&) const;
34  virtual double calculateCost(const InterpolatedCurve&) const;
35  virtual std::vector<double> giveSmoothedCurve(const InterpolatedCurve&) const;
36  virtual void updateSmoothedCurve(InterpolatedCurve& c, const std::vector<double>& r) const;
37 
38  virtual SmoothZeroCouponRates* clone() const;
39  virtual ~SmoothZeroCouponRates(){};
40 
41  private:
42  };
43 } // namespace ir
44 } // namespace julian
45 #endif
Definition: cadHoliday.cpp:3
virtual void updateSmoothedCurve(InterpolatedCurve &c, const std::vector< double > &r) const
updates the curve with vector of zero-coupon rates
Definition: SmoothZeroCouponRates.cpp:32
File contains interface of cost function used by interest rate curve smoothers.
File contains definition of swap interpolated curve class.
Interface for Smoother Cost Function decorator.
Definition: SmootherCostFunction.hpp:39
The object models the interest rate curve.
Definition: interpolatedCurve.hpp:42
virtual double calculateCost(const InterpolatedCurve &) const
returns 0.0, as the true cost is calculated by decorators
Definition: SmoothZeroCouponRates.cpp:20
virtual arma::mat giveCvector(const InterpolatedCurve &) const
returns vector filled with zeros
Definition: SmoothZeroCouponRates.cpp:14
Class implements concrete component of SmootherCostFunction.
Definition: SmoothZeroCouponRates.hpp:28
virtual std::vector< double > giveSmoothedCurve(const InterpolatedCurve &) const
returns vector of zero-coupon rates
Definition: SmoothZeroCouponRates.cpp:26
virtual SmoothZeroCouponRates * clone() const
virtual copy constructor
Definition: SmoothZeroCouponRates.cpp:39
virtual arma::mat giveQmatrix(const InterpolatedCurve &) const
returns matrix filled with zeros
Definition: SmoothZeroCouponRates.cpp:8