Table of Contents

Class SpreadedCubicZeroInterpolatedTermStructure

Namespace
NanoQL.TermStructures
Assembly
NanoQL.dll

A yield curve with spreads added to another curve's zero rates, interpolated cubically between their dates.

public sealed class SpreadedCubicZeroInterpolatedTermStructure : InterpolatedPiecewiseZeroSpreadedTermStructure<Cubic>
Inheritance
SpreadedCubicZeroInterpolatedTermStructure
Inherited Members
Extension Methods

Remarks

QuantLib-Python's %template name for InterpolatedPiecewiseZeroSpreadedTermStructure<TInterpolator> on Cubic: it adds constructors only.

Constructors

SpreadedCubicZeroInterpolatedTermStructure(YieldTermStructure, IEnumerable<double>, IEnumerable<Date>, Compounding, Frequency, Cubic)

Initializes a new instance of the SpreadedCubicZeroInterpolatedTermStructure class.

public SpreadedCubicZeroInterpolatedTermStructure(YieldTermStructure originalCurve, IEnumerable<double> spreads, IEnumerable<Date> dates, Compounding comp = Compounding.Continuous, Frequency freq = Frequency.NoFrequency, Cubic factory = default)

Parameters

originalCurve YieldTermStructure

The curve the spreads are added to.

spreads IEnumerable<double>

The spreads, one per date.

dates IEnumerable<Date>

The spreads' dates, sorted.

comp Compounding

The compounding the spreads are added in.

freq Frequency

The frequency the spreads are added in, which a compounded rule needs.

factory Cubic

The interpolator.

Exceptions

ArgumentNullException

originalCurve, spreads or dates is null.

ArgumentOutOfRangeException

The compounding or the frequency isn't a member of its enum.

ArgumentException

The spreads or their dates are refused, as InterpolatedPiecewiseZeroSpreadedTermStructure<TInterpolator> refuses them.

NanoQLException

The interpolation refuses the spreads.