Sub-periods coupon. More...
#include <qle/cashflows/subperiodscoupon.hpp>
Public Types | |
enum | Type { Averaging , Compounding } |
Public Member Functions | |
SubPeriodsCoupon1 (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, const QuantLib::ext::shared_ptr< InterestRateIndex > &index, Type type, BusinessDayConvention convention, Spread spread=0.0, const DayCounter &dayCounter=DayCounter(), bool includeSpread=false, Real gearing=1.0) | |
Inspectors | |
const std::vector< Date > & | fixingDates () const |
fixing dates for the sub-periods More... | |
const std::vector< Time > & | accrualFractions () const |
accrual periods for the sub-periods More... | |
const std::vector< Rate > & | indexFixings () const |
fixings for the sub-periods More... | |
const std::vector< Date > & | valueDates () const |
value dates for the sub-periods More... | |
Type | type () const |
whether sub-period fixings are averaged or compounded More... | |
bool | includeSpread () const |
whether to include/exclude spread in compounding/averaging More... | |
Spread | spread () const |
Need to be able to change spread to solve for fair spread. More... | |
Spread & | spread () |
FloatingRateCoupon interface | |
Date | fixingDate () const override |
the date when the coupon is fully determined More... | |
Visitability | |
Type | type_ |
bool | includeSpread_ |
std::vector< Date > | valueDates_ |
std::vector< Date > | fixingDates_ |
std::vector< Rate > | fixings_ |
Size | numPeriods_ |
std::vector< Time > | accrualFractions_ |
void | accept (AcyclicVisitor &) override |
Sub-periods coupon.
The coupon period tenor is a multiple of the tenor associated with the index. The index tenor divides the coupon period into sub-periods. The index fixing for each sub-period is compounded or averaged over the full coupon period.
\ingroup cashflows \todo merge into QuantLib
Definition at line 46 of file subperiodscoupon.hpp.
enum Type |
SubPeriodsCoupon1 | ( | const Date & | paymentDate, |
Real | nominal, | ||
const Date & | startDate, | ||
const Date & | endDate, | ||
const QuantLib::ext::shared_ptr< InterestRateIndex > & | index, | ||
Type | type, | ||
BusinessDayConvention | convention, | ||
Spread | spread = 0.0 , |
||
const DayCounter & | dayCounter = DayCounter() , |
||
bool | includeSpread = false , |
||
Real | gearing = 1.0 |
||
) |
Definition at line 31 of file subperiodscoupon.cpp.
const std::vector< Date > & fixingDates | ( | ) | const |
const std::vector< Time > & accrualFractions | ( | ) | const |
accrual periods for the sub-periods
Definition at line 58 of file subperiodscoupon.hpp.
const std::vector< Rate > & indexFixings | ( | ) | const |
fixings for the sub-periods
Definition at line 68 of file subperiodscoupon.cpp.
const std::vector< Date > & valueDates | ( | ) | const |
Type type | ( | ) | const |
whether sub-period fixings are averaged or compounded
Definition at line 64 of file subperiodscoupon.hpp.
bool includeSpread | ( | ) | const |
whether to include/exclude spread in compounding/averaging
Definition at line 66 of file subperiodscoupon.hpp.
Spread spread | ( | ) | const |
Need to be able to change spread to solve for fair spread.
Definition at line 68 of file subperiodscoupon.hpp.
Spread & spread | ( | ) |
Definition at line 69 of file subperiodscoupon.hpp.
|
override |
|
override |
Definition at line 79 of file subperiodscoupon.cpp.
|
private |
Definition at line 81 of file subperiodscoupon.hpp.
|
private |
Definition at line 82 of file subperiodscoupon.hpp.
|
private |
Definition at line 83 of file subperiodscoupon.hpp.
|
private |
Definition at line 83 of file subperiodscoupon.hpp.
|
mutableprivate |
Definition at line 84 of file subperiodscoupon.hpp.
|
private |
Definition at line 85 of file subperiodscoupon.hpp.
|
private |
Definition at line 86 of file subperiodscoupon.hpp.