23#ifndef QL_PATCH_SOLARIS
42 const Real inceptionTrancheNotional =
51 ext::dynamic_pointer_cast<Coupon>(
56 if (i->hasOccurred(today)) {
62 const ext::shared_ptr<Coupon> coupon = ext::dynamic_pointer_cast<Coupon>(i);
64 Date d1 = coupon->accrualStartDate();
65 Date d2 = coupon->date();
78 += (inceptionTrancheNotional - e2)
102 ext::dynamic_pointer_cast<Coupon>(
115 Real fairSpread = 0.;
Date advance(const Date &, Integer n, TimeUnit unit, BusinessDayConvention convention=Following, bool endOfMonth=false) const
Time yearFraction(const Date &, const Date &, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date()) const
Returns the period between two dates as a fraction of year.
SyntheticCDO::results results_
SyntheticCDO::arguments arguments_
std::map< std::string, ext::any > additionalResults
Handle< YieldTermStructure > discountCurve_
void calculate() const override
Calendar for reproducing theoretical calculations.
template class providing a null value for a given type.
DateProxy & evaluationDate()
the date at which pricing is to be performed.
static Settings & instance()
access to the unique instance
ext::shared_ptr< Basket > basket
std::vector< Real > expectedTrancheLoss
Coupon paying a fixed annual rate.
Interest-rate term structure.