InterpolatedPiecewiseZeroSpreadedTermStructure< Interpolator > — Yield curve with an added vector of spreads on the zero-yield rate.


#include <ql/termstructures/yield/piecewisezerospreadedtermstructure.hpp>

Inherits ZeroYieldStructure.

Public Member Functions

InterpolatedPiecewiseZeroSpreadedTermStructure (const Handle< YieldTermStructure > &, const std::vector< Handle< Quote > > &spreads, const std::vector< Date > &dates, Compounding comp=Continuous, Frequency freq=NoFrequency, const DayCounter &dc=DayCounter(), const Interpolator &factory=Interpolator())

YieldTermStructure interface

DayCounter dayCounter () const
the day counter used for date/time conversion
Natural settlementDays () const
the settlementDays used for reference date calculation
Calendar calendar () const
the calendar used for reference and/or option date calculation
const Date & referenceDate () const
the date at which discount = 1.0 and/or variance = 0.0
Date maxDate () const
the latest date for which the curve can return values

Protected Member Functions

Rate zeroYieldImpl (Time) const
returns the spreaded zero yield rate
void update ()

Additional Inherited Members

Detailed Description

template<class Interpolator>

class QuantLib::InterpolatedPiecewiseZeroSpreadedTermStructure< Interpolator >" Yield curve with an added vector of spreads on the zero-yield rate.

The zero-yield spread at any given date is interpolated between the input data.


This term structure will remain linked to the original structure, i.e., any changes in the latter will be reflected in this structure as well.

Member Function Documentation

void update () [protected], [virtual]

This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.

Reimplemented from TermStructure.


Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

InterpolatedPiecewiseZeroSpreadedTermStructure(3) is an alias of QuantLib_InterpolatedPiecewiseZeroSpreadedTermStructure(3).

QuantLib Version 1.8.1 Fri Sep 23 2016