Table of Contents

Class DefaultDensityCurve

Namespace
NanoQL.TermStructures
Assembly
NanoQL.dll

The default-density curve with linear interpolation: QuantLib-Python's DefaultDensityCurve, QuantLib's InterpolatedDefaultDensityCurve<Linear>.

public sealed class DefaultDensityCurve : InterpolatedDefaultDensityCurve<Linear>, IInterpolatedCurve<DefaultDensity, Linear>
Inheritance
DefaultDensityCurve
Implements
Inherited Members
Extension Methods

Constructors

DefaultDensityCurve(IEnumerable<Date>, IEnumerable<double>, DayCounter, Calendar?, IEnumerable<double>?, IEnumerable<Date>?)

Initializes a new instance of the DefaultDensityCurve class.

public DefaultDensityCurve(IEnumerable<Date> dates, IEnumerable<double> densities, DayCounter dayCounter, Calendar? calendar = null, IEnumerable<double>? jumps = null, IEnumerable<Date>? jumpDates = null)

Parameters

dates IEnumerable<Date>

The nodes' dates, sorted, the first one the reference date.

densities IEnumerable<double>

The default densities at the nodes, one per date.

dayCounter DayCounter

The day counter.

calendar Calendar

The calendar, if any.

jumps IEnumerable<double>

The survival-probability jumps; none when null.

jumpDates IEnumerable<Date>

The jumps' dates; at the turns of the years when null or empty.

Exceptions

ArgumentNullException

dates, densities or dayCounter is null.

ArgumentException

The inputs are refused as InterpolatedDefaultDensityCurve<TInterpolator> refuses them.