public class ForwardCurveFromDiscountCurve extends AbstractForwardCurve implements Serializable
CurveInterpolation.Builder, CurveInterpolation.ExtrapolationMethod, CurveInterpolation.InterpolationEntity, CurveInterpolation.InterpolationMethod, CurveInterpolation.Point| Constructor and Description |
|---|
ForwardCurveFromDiscountCurve(String referenceDiscountCurveName,
LocalDate referenceDate,
String paymentOffsetCode)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
LocalDate referenceDate,
String paymentOffsetCode)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentOffsetBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentOffsetBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention,
double daycountScaling,
double periodOffset)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
String discountCurveName,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentOffsetBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention,
DayCountConvention daycountConvention,
double periodOffset)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
String discountCurveName,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentOffsetBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention,
double daycountScaling,
double periodOffset)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getForward(AnalyticModel model,
double fixingTime)
Returns the forward for the corresponding fixing time.
|
double |
getForward(AnalyticModel model,
double fixingTime,
double paymentOffset)
Returns the forward for the corresponding fixing time and paymentOffset.
|
double[] |
getParameter()
Get the current parameter associated with the state of the objects.
|
double |
getValue(AnalyticModel model,
double time)
Returns the value for the time using the interpolation method associated with this curve
within a given context, i.e., a model.
|
double |
getValue(double time)
Returns the value for the time using the interpolation method associated with this curve.
|
String |
toString() |
getDiscountCurveName, getForwards, getPaymentBusinessdayCalendar, getPaymentDateRollConvention, getPaymentOffset, getPaymentOffsetCodeaddPoint, clone, getCloneBuilder, getCloneForParameter, getExtrapolationMethod, getInterpolationEntity, getInterpolationMethod, getParameterIndex, getPoints, getTimeIndex, setParametergetName, getReferenceDate, getValuesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCloneBuilder, getCloneForParameter, getName, getReferenceDatesetParameterpublic ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, String discountCurveName, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentOffsetBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention, DayCountConvention daycountConvention, double periodOffset)
name - The name under which the forward curve can be referenced.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.discountCurveName - The name of the discount curve associated with this forward curve (usually OIS).referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.paymentOffsetBusinessdayCalendar - The calendar used to generate the payment date from the paymentOffetCode.paymentOffsetDateRollConvention - The date roll convention used to generate the payment date from the paymentOffsetCode.daycountConvention - The daycount convention \( dcf(t,t+d) \) use the time-scale the performance ratio derived from the discount factors.periodOffset - An offset in ACT/365 applied to the fixing to construct the period start (the negative of the fixingOffset of the period).public ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, String discountCurveName, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentOffsetBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention, double daycountScaling, double periodOffset)
name - The name under which the forward curve can be referenced.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.discountCurveName - The name of the discount curve associated with this forward curve (usually OIS).referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.paymentOffsetBusinessdayCalendar - The calendar used to generate the payment date from the paymentOffetCode.paymentOffsetDateRollConvention - The date roll convention used to generate the payment date from the paymentOffsetCode.daycountScaling - The scaling factor applied to the paymentOffset measured in ACT/365.periodOffset - An offset in ACT/365 applied to the fixing to construct the period start (the negative of the fixingOffset of the period).public ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentOffsetBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention, double daycountScaling, double periodOffset)
name - The name under which the forward curve can be referenced.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.paymentOffsetBusinessdayCalendar - The calendar used to generate the payment date from the paymentOffetCode.paymentOffsetDateRollConvention - The date roll convention used to generate the payment date from the paymentOffsetCode.daycountScaling - The scaling factor applied to the paymentOffset measured in ACT/365.periodOffset - An offset in ACT/365 applied to the fixing to construct the period start (the negative of the fixingOffset of the period).public ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentOffsetBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentOffsetDateRollConvention)
name - The name under which the forward curve can be referenced.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.paymentOffsetBusinessdayCalendar - The calendar used to generate the payment date from the paymentOffetCode.paymentOffsetDateRollConvention - The date roll convention used to generate the payment date from the paymentOffsetCode.public ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, LocalDate referenceDate, String paymentOffsetCode)
name - The name under which the forward curve can be referenced.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.public ForwardCurveFromDiscountCurve(String referenceDiscountCurveName, LocalDate referenceDate, String paymentOffsetCode)
"ForwardCurveFromDiscountCurve(" + referenceDiscountCurveName + "," + paymentOffsetCode + ")",
but code should not reply on this. Instead you should use getName() to get the name of the curve.referenceDiscountCurveName - The (pseudo-)discount curve that the forwards are calculated from.referenceDate - The reference date used in the interpretation of times (i.e., the referenceDate where t=0).paymentOffsetCode - The payment offset. If null, the parameter p has to be provided to the getForward method.public double getForward(AnalyticModel model, double fixingTime)
ForwardCurvegetForward in interface ForwardCurvemodel - An analytic model providing a context. Some curves do not need this (can be null).fixingTime - The fixing time of the index associated with this forward curve.public double getForward(AnalyticModel model, double fixingTime, double paymentOffset)
ForwardCurvegetForward in interface ForwardCurvemodel - An analytic model providing a context. Some curves do not need this (can be null).fixingTime - The fixing time of the index associated with this forward curve.paymentOffset - The payment offset (as internal day count fraction) specifying the payment of this index. Used only as a fallback and/or consistency check.public double getValue(double time)
CurvegetValue in interface CurvegetValue in class CurveInterpolationtime - Time for which the value should be returned.public double getValue(AnalyticModel model, double time)
CurvegetValue in interface CurvegetValue in class CurveInterpolationmodel - An analytic model providing a context.time - Time for which the value should be returned.public double[] getParameter()
ParameterObjectgetParameter in interface ParameterObjectgetParameter in class CurveInterpolationpublic String toString()
toString in class AbstractForwardCurveCopyright © 2019. All rights reserved.