Class YoYInflationCap
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
A year-on-year inflation cap: a strip of caplets on a year-on-year leg.
public sealed class YoYInflationCap : YoYInflationCapFloor
- Inheritance
-
YoYInflationCap
- Inherited Members
Constructors
YoYInflationCap(ImmutableArray<CashFlow>, IEnumerable<double>)
Initializes a new instance of the YoYInflationCap class.
public YoYInflationCap(ImmutableArray<CashFlow> yoyLeg, IEnumerable<double> exerciseRates)
Parameters
yoyLegImmutableArray<CashFlow>The year-on-year leg.
exerciseRatesIEnumerable<double>The cap rates, extended to the leg's length with the last one.
Exceptions
- ArgumentException
The leg is
defaultor holds a null cash flow, or there are no rates ("no cap rates given").- ArgumentNullException
exerciseRatesis null.