The class encapsulates the exponential rate compounding method. More...
#include <exponentialRate.hpp>
Public Member Functions | |
virtual double | getCapitalization (double interest_rate, double accrual_time) const |
Calculates future value. More... | |
virtual double | getRate (double future_value, double accrual_time) const |
Calculates interest rate. More... | |
virtual std::string | info () const |
Info about class. More... | |
virtual ExponentialRate * | clone () const |
Virtual copy constructor. More... | |
Public Member Functions inherited from julian::Compounding | |
Compounding () | |
Default constructor. More... | |
virtual | ~Compounding () |
Destructor. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &, const unsigned int) |
interface used by Boost serialization library More... | |
Friends | |
class | boost::serialization::access |
std::ostream & | operator<< (std::ostream &s, ExponentialRate &c) |
Overloads stream operator. More... | |
Detailed Description
The class encapsulates the exponential rate compounding method.
Object of this class implements exponential interest rate compounding. Using exponential compounding the future value and interest rate are calculated according to formulae:
- Examples:
- bootstrapperComparison.cpp, InterestRateExample.cpp, and serializationExample.cpp.
Member Function Documentation
|
virtual |
Virtual copy constructor.
Method is an implementation of virtual copy constructor.
Implements julian::Compounding.
|
virtual |
Calculates future value.
Method calculates the future value of 1 currency unit on the basis of annualized interest rate and interest accrual period.
Implements julian::Compounding.
- Examples:
- InterestRateExample.cpp.
|
virtual |
Calculates interest rate.
Method calculates the annualized interest rate on the basis of future value of interest rate value and interest accrual period.
Implements julian::Compounding.
- Examples:
- InterestRateExample.cpp.
|
virtual |
Info about class.
Method returns string that containing information about class.
Implements julian::Compounding.
|
inlineprivate |
interface used by Boost serialization library
Friends And Related Function Documentation
|
friend |
Overloads stream operator.
This overloaded operator enables to print the curve on the console.
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/interestRates/exponentialRate.hpp
- C:/Unix/home/OEM/jULIAN/src/interestRates/exponentialRate.cpp