QuantLib_PiecewiseDefaultCurve man page

PiecewiseDefaultCurve< Traits, Interpolator, Bootstrap > — Piecewise default-probability term structure.

Synopsis

#include <ql/termstructures/credit/piecewisedefaultcurve.hpp>

Inherits type< Interpolator >, and LazyObject.

Public Types

typedef Traits traits_type

typedef Interpolator interpolator_type

Public Member Functions

Constructors

PiecewiseDefaultCurve (const Date &referenceDate, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), Real accuracy=1.0e-12, const Interpolator &i=Interpolator())

PiecewiseDefaultCurve (const Date &referenceDate, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, Real accuracy, const Interpolator &i=Interpolator())

PiecewiseDefaultCurve (const Date &referenceDate, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, const Interpolator &i)

PiecewiseDefaultCurve (Natural settlementDays, const Calendar &calendar, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, const std::vector< Handle< Quote > > &jumps=std::vector< Handle< Quote > >(), const std::vector< Date > &jumpDates=std::vector< Date >(), Real accuracy=1.0e-12, const Interpolator &i=Interpolator())

PiecewiseDefaultCurve (Natural settlementDays, const Calendar &calendar, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, Real accuracy, const Interpolator &i=Interpolator())

PiecewiseDefaultCurve (Natural settlementDays, const Calendar &calendar, const std::vector< boost::shared_ptr< typename Traits::helper > > &instruments, const DayCounter &dayCounter, const Interpolator &i)

TermStructure interface

Date maxDate () const

base_curve interface

const std::vector< Time > & times () const

const std::vector< Date > & dates () const

const std::vector< Real > & data () const

std::vector< std::pair< Date, Real > > nodes () const

Observer interface

void update ()

Friends

class Bootstrap< this_curve >

class BootstrapError< this_curve >

Additional Inherited Members

Detailed Description

template<class Traits, class Interpolator, template< class > class Bootstrap = IterativeBootstrap>

class QuantLib::PiecewiseDefaultCurve< Traits, Interpolator, Bootstrap >" Piecewise default-probability term structure.

This term structure is bootstrapped on a number of credit instruments which are passed as a vector of handles to DefaultProbabilityHelper instances. Their maturities mark the boundaries of the interpolated segments.

Each segment is determined sequentially starting from the earliest period to the latest and is chosen so that the instrument whose maturity marks the end of such segment is correctly repriced on the curve.

Warning

The bootstrapping algorithm will raise an exception if any two instruments have the same maturity date.

Examples: CDS.cpp.

Member Function Documentation

void update () [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 LazyObject.

Author

Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

interpolator_type(3), PiecewiseDefaultCurve(3) and traits_type(3) are aliases of QuantLib_PiecewiseDefaultCurve(3).

Fri Sep 23 2016 Version 1.8.1 QuantLib