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
originalCurveYieldTermStructureThe curve the spreads are added to.
spreadsIEnumerable<double>The spreads, one per date.
datesIEnumerable<Date>The spreads' dates, sorted.
compCompoundingThe compounding the spreads are added in.
freqFrequencyThe frequency the spreads are added in, which a compounded rule needs.
factoryCubicThe interpolator.
Exceptions
- ArgumentNullException
originalCurve,spreadsordatesis 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.