When I create an InterpolatedZeroCurve using a specific set of dates, set of yields, day counter, interpolator, compounding, and frequency, my first date always gets anchored to time zero, which is expected. Unfortunately I'm not allowed to add a reference date within that specific overload, so any interpolations that are performed must first have the difference between the true reference date and the first tenor date subtracted from the input to the interpolation method... I need to be able to properly interpolated across the curve as well as extrapolate to the reference rate (which is one of the main reasons I need this object), which means I must include the reference date in some way without performing this reference date-first tenor date difference.
Is there be another way to supply a reference date using the above information to create an interpolated zero curve? I could use all the help I could get at this point.
QLNet Location: https://github.com/amaggiulli/qlnet/blob/master/QLNet/Termstructures/Yield/ZeroCurve.cs
Constructor:
public InterpolatedZeroCurve(List<Date> dates, List<double> yields, DayCounter dayCounter, Interpolator interpolator, Compounding compounding = Compounding.Continuous, Frequency frequency = Frequency.Annual)
When I create an InterpolatedZeroCurve using a specific set of dates, set of yields, day counter, interpolator, compounding, and frequency, my first date always gets anchored to time zero, which is expected. Unfortunately I'm not allowed to add a reference date within that specific overload, so any interpolations that are performed must first have the difference between the true reference date and the first tenor date subtracted from the input to the interpolation method... I need to be able to properly interpolated across the curve as well as extrapolate to the reference rate (which is one of the main reasons I need this object), which means I must include the reference date in some way without performing this reference date-first tenor date difference.
Is there be another way to supply a reference date using the above information to create an interpolated zero curve? I could use all the help I could get at this point.
QLNet Location: https://github.com/amaggiulli/qlnet/blob/master/QLNet/Termstructures/Yield/ZeroCurve.cs
Constructor:
public InterpolatedZeroCurve(List<Date> dates, List<double> yields, DayCounter dayCounter, Interpolator interpolator, Compounding compounding = Compounding.Continuous, Frequency frequency = Frequency.Annual)