interpolatedCurve.hpp
Go to the documentation of this file.
45 InterpolatedCurve(Date today,std::vector<Date> dates,std::vector<double> dfs, InterestRate rate_,
46 SmartPointer<Interpolator> interpolator,SmartPointer<Extrapolator> extrapolator,Calendar calendar,double fx_spot);
void setDates(std::vector< Date >)
change nodal dates of the curve
Definition: interpolatedCurve.cpp:436
Date today_
Today represent the date on which the curve is valid.
Definition: interpolatedCurve.hpp:109
InterestRate getInterestRate() const
get interest rate convention
Definition: interpolatedCurve.cpp:378
double calculateYF(Date, Date) const
calculate year fraction
Definition: interpolatedCurve.cpp:546
SmartPointer< Interpolator > interpolator_
The interpolator encapsulates the concept of interpolation - getting the DF for dates that are not no...
Definition: interpolatedCurve.hpp:113
File contains template of deep-coping smart pointer.
Contains headers of all files with definitions of classes gathered in dates calendar and holidays mod...
std::vector< Date > getDates() const
get dates vector
Definition: interpolatedCurve.cpp:408
std::vector< double > getFwdRates() const
get forward rates
Definition: interpolatedCurve.cpp:303
File contains definition of interface of interest rate curve interpolator.
Definition: cadHoliday.cpp:3
double rate(Date) const override
get zero coupon rate
Definition: interpolatedCurve.cpp:178
Date getValuationDate() const override
get today dates
Definition: interpolatedCurve.cpp:392
int getSize() const
returns the number of nodal dates.
Definition: interpolatedCurve.cpp:416
virtual InterpolatedCurve * clone() const override
Virtual copy constructor.
Definition: interpolatedCurve.cpp:559
void setFwdRates(std::vector< double >)
set forward rate
Definition: interpolatedCurve.cpp:491
void setDFs(std::vector< double >)
set discount factors
Definition: interpolatedCurve.cpp:472
File contains small programming tools.
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: interpolatedCurve.hpp:122
std::vector< double > getDFs() const
get discount factors
Definition: interpolatedCurve.cpp:273
InterestRate rate_
The rate encapsulates the concept interest rate (year fraction and compounding).
Definition: interpolatedCurve.hpp:112
InterpolatedCurve()
Default constructor.
Definition: interpolatedCurve.cpp:21
void setFxSpot(double)
set fx spot for the curve
Definition: interpolatedCurve.cpp:428
friend std::ostream & operator<<(std::ostream &, InterpolatedCurve &)
Overloads stream operator.
Definition: interpolatedCurve.cpp:508
void setRates(std::vector< double >)
set zero coupon rates
Definition: interpolatedCurve.cpp:480
File contains definition of interface of interest rate curve extrapolator.
SmartPointer< Extrapolator > extrapolator_
The extrapolator encapsulates the concept of extrapolating the curve outside the interval defined by ...
Definition: interpolatedCurve.hpp:114
The object models the interest rate curve.
Definition: interpolatedCurve.hpp:42
Structure holding settings of ir::InterpolatedCurve.
Definition: curveSettings.hpp:26
double fx_spot_
Fx Spots allows to calculate two-currency instruments (Fx Forwards and CIRS).
Definition: interpolatedCurve.hpp:116
SmartPointer< Interpolator > getInterpolator() const
get interpolator
Definition: interpolatedCurve.cpp:362
Calendar calendar_
Thanks to calendar outputs of the curve (DFs, ZCRs, etc) can be calculated only on the basis of provi...
Definition: interpolatedCurve.hpp:115
double coupon(Date) const override
get coupon
Definition: interpolatedCurve.cpp:146
double fwdRate(Date, Date) const override
get forward rate
Definition: interpolatedCurve.cpp:210
std::vector< double > dfs_
InterpolatedCurve is represented by values of discount factors for each date.
Definition: interpolatedCurve.hpp:111
double getFxSpot() const
get FxSpot
Definition: interpolatedCurve.cpp:538
File contains definition of structure holding settings of ir::InterpolatedCurve.
SmartPointer< Extrapolator > getExtrapolator() const
get extrapolator
Definition: interpolatedCurve.cpp:370
Calendar getCalendar() const
get calendar
Definition: interpolatedCurve.cpp:354
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
double DF(Date) const override
get DF
Definition: interpolatedCurve.cpp:70
Date getSpotDate() const
get spot date
Definition: interpolatedCurve.cpp:400
File contains interface of interest rate curves.
std::vector< double > getRates() const
get zero coupon rates
Definition: interpolatedCurve.cpp:281
double capitalization(Date) const override
get capitalization
Definition: interpolatedCurve.cpp:114
File contains definition of InterestRate class.
CurveSettings getSettings() const
Returns settings of curve.
Definition: interpolatedCurve.cpp:554
std::vector< Date > dates_
This vector represents grid dates of the curve.
Definition: interpolatedCurve.hpp:110