interestRate.hpp
Go to the documentation of this file.
28 InterestRate(const SmartPointer<Compounding>& compounding,const SmartPointer< YearFraction>& year_fraction);
double coupon(Date date1, Date date2, double interest_rate) const
Calculates coupon.
Definition: interestRate.cpp:52
File contains template of deep-coping smart pointer.
Contains headers of all files with definitions of classes gathered in dates calendar and holidays mod...
File contains interface of interest rate compounding concept.
File contains interface for year fractions.
double fwdRate(Date date1, Date date2, double df1, double df2) const
Calculates forward rate.
Definition: interestRate.cpp:63
Definition: cadHoliday.cpp:3
SmartPointer< YearFraction > year_fraction_
Attribute maintaining year fraction convention.
Definition: interestRate.hpp:54
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: interestRate.hpp:46
double capitalization(Date date1, Date date2, double interest_rate) const
Calculates capitalization.
Definition: interestRate.cpp:31
SmartPointer< Compounding > compounding_
Attribute maintaining compounding convention.
Definition: interestRate.hpp:51
double zcRate(Date date1, Date date2, double df) const
Calculates zero coupon rate.
Definition: interestRate.cpp:75
friend std::ostream & operator<<(std::ostream &s, InterestRate &r)
Overloads stream operator.
Definition: interestRate.cpp:100
double yf(Date date1, Date date2) const
Calculates year fraction.
Definition: interestRate.cpp:84
InterestRate * clone() const
Virtual copy constructor.
Definition: interestRate.cpp:92
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
double DF(Date date1, Date date2, double interest_rate) const
Calculates discount factor.
Definition: interestRate.cpp:42