public class ForwardCurveFromDiscountCurve extends AbstractForwardCurve implements Serializable
Curve.CurveBuilder, Curve.ExtrapolationMethod, Curve.InterpolationEntity, Curve.InterpolationMethoddiscountCurveName, paymentBusinessdayCalendar, paymentDateRollConvention, paymentOffsetCode| Constructor and Description |
|---|
ForwardCurveFromDiscountCurve(String referenceDiscountCurveName,
java.time.LocalDate referenceDate,
String paymentOffsetCode)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
java.time.LocalDate referenceDate,
String paymentOffsetCode)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
java.time.LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar,
BusinessdayCalendarInterface.DateRollConvention paymentOffsetDateRollConvention)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
java.time.LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar,
BusinessdayCalendarInterface.DateRollConvention paymentOffsetDateRollConvention,
double daycountScaling,
double periodOffset)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
ForwardCurveFromDiscountCurve(String name,
String referenceDiscountCurveName,
String discountCurveName,
java.time.LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar,
BusinessdayCalendarInterface.DateRollConvention paymentOffsetDateRollConvention,
double daycountScaling,
double periodOffset)
Create a forward curve using a given referenceDiscountCurveForForwards.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getForward(AnalyticModelInterface model,
double fixingTime)
Returns the forward for the corresponding fixing time.
|
double |
getForward(AnalyticModelInterface 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(AnalyticModelInterface 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, getPaymentOffsetaddPoint, clone, getCloneBuilder, getCloneForParameter, getExtrapolationMethod, getInterpolationEntity, getInterpolationMethod, getParameterIndex, getTimeIndex, setParametergetName, getReferenceDate, getValuesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCloneBuilder, getCloneForParameter, getName, getReferenceDatesetParameterpublic ForwardCurveFromDiscountCurve(String name, String referenceDiscountCurveName, String discountCurveName, java.time.LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar, BusinessdayCalendarInterface.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, java.time.LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar, BusinessdayCalendarInterface.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, java.time.LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendarInterface paymentOffsetBusinessdayCalendar, BusinessdayCalendarInterface.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, java.time.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, java.time.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(AnalyticModelInterface model, double fixingTime)
ForwardCurveInterfacegetForward in interface ForwardCurveInterfacemodel - 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(AnalyticModelInterface model, double fixingTime, double paymentOffset)
ForwardCurveInterfacegetForward in interface ForwardCurveInterfacemodel - 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)
CurveInterfacegetValue in interface CurveInterfacegetValue in class Curvetime - Time for which the value should be returned.public double getValue(AnalyticModelInterface model, double time)
CurveInterfacegetValue in interface CurveInterfacegetValue in class Curvemodel - An analytic model providing a context.time - Time for which the value should be returned.public double[] getParameter()
ParameterObjectInterfacegetParameter in interface ParameterObjectInterfacegetParameter in class Curvepublic String toString()
toString in class AbstractForwardCurveCopyright © 2017. All rights reserved.