rootFindingBootstrapper.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_ROOTFINDINGBOOTSTRAPPER_HPP
2 #define JULIAN_ROOTFINDINGBOOTSTRAPPER_HPP
3 
7 #include <gsl/gsl_errno.h>
8 #include <gsl/gsl_math.h>
9 #include <gsl/gsl_roots.h>
10 
11 namespace julian {
12 namespace ir {
48  public:
52  void calculate(const std::vector<SmartPointer<BuildingBlock> >& instruments,
53  const CurveSettings& settings,
54  SmartPointer<ir::Curve>& discounting, SmartPointer<ir::Curve>& projection);
55  std::vector<double> getDF() const;
56  std::vector<Date> getDates() const;
57 
58  std::string info() const;
59 
62  private:
63  std::vector<double> discount_factors_;
64  std::vector<Date> dates_;
66  };
67 } // namespace ir
68 } // namespace julian
69 
70 #endif
Definition: cadHoliday.cpp:3
Class defines the interface of algorithms that perform estimation of interest rate curve (see Interpo...
Definition: irCurveEstimator.hpp:23
DerivativeRootFinder
Types of root finding algorithms using derivatives.
Definition: derivativeRootFinder.hpp:48
std::vector< double > discount_factors_
Vector of discount factors.
Definition: rootFindingBootstrapper.hpp:61
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
File contains interface of algorithms that performs interest rate curve estimations.
std::vector< double > getDF() const
returns DFs
Definition: rootFindingBootstrapper.cpp:10
std::string info() const
returns name of estimator
Definition: rootFindingBootstrapper.cpp:14
DerivativeRootFinder method_
Algorithm type.
Definition: rootFindingBootstrapper.hpp:65
File contains definition of swap interpolated curve class.
File contains implementation of root finder algorithm using derivative.
Structure holding settings of ir::InterpolatedCurve.
Definition: curveSettings.hpp:26
RootFindingBootstrapper * clone() const
virtual copy constructor
Definition: rootFindingBootstrapper.cpp:6
std::vector< Date > dates_
Vector of grid dates.
Definition: rootFindingBootstrapper.hpp:64
Interest rate curve estimating algorithm using the derivative root finder.
Definition: rootFindingBootstrapper.hpp:47
std::vector< Date > getDates() const
returns dates
Definition: rootFindingBootstrapper.cpp:18
RootFindingBootstrapper(DerivativeRootFinder method=DerivativeRootFinder::STEFFENSEN)
constructor
Definition: rootFindingBootstrapper.hpp:51
void calculate(const std::vector< SmartPointer< BuildingBlock > > &instruments, const CurveSettings &settings, SmartPointer< ir::Curve > &discounting, SmartPointer< ir::Curve > &projection)
estimates the curve
Definition: rootFindingBootstrapper.cpp:22