SmoothForwardRates.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_SMOOTHFORWARDRATES_HPP
2 #define JULIAN_SMOOTHFORWARDRATES_HPP
3 
6 #include <armadillo>
7 
8 namespace julian {
9 namespace ir {
10 
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 SmoothForwardRates* clone() const;
39  virtual ~SmoothForwardRates(){};
40 
41  private:
42  };
43 
44 } // namespace ir
45 } // namespace julian
46 #endif
virtual SmoothForwardRates * clone() const
virtual copy constructor
Definition: SmoothForwardRates.cpp:37
virtual void updateSmoothedCurve(InterpolatedCurve &c, const std::vector< double > &r) const
updates the curve with vector of forward rates
Definition: SmoothForwardRates.cpp:32
Definition: cadHoliday.cpp:3
virtual arma::mat giveCvector(const InterpolatedCurve &) const
returns vector filled with zeros
Definition: SmoothForwardRates.cpp:14
Class implements concrete component of SmootherCostFunction.
Definition: SmoothForwardRates.hpp:28
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 arma::mat giveQmatrix(const InterpolatedCurve &) const
returns matrix filled with zeros
Definition: SmoothForwardRates.cpp:8
virtual double calculateCost(const InterpolatedCurve &) const
returns 0.0, as the true cost is calculated by decorators
Definition: SmoothForwardRates.cpp:20
virtual std::vector< double > giveSmoothedCurve(const InterpolatedCurve &) const
returns vector of forward rates
Definition: SmoothForwardRates.cpp:26