public class ForwardCurveNelsonSiegelSvensson extends AbstractCurve implements Serializable, ForwardCurve
DiscountCurveNelsonSiegelSvensson,
Serialized Form| Constructor and Description |
|---|
ForwardCurveNelsonSiegelSvensson(String name,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentDateRollConvention,
DayCountConvention daycountConvention,
double[] parameter,
double timeScaling) |
ForwardCurveNelsonSiegelSvensson(String name,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendar paymentBusinessdayCalendar,
BusinessdayCalendar.DateRollConvention paymentDateRollConvention,
DayCountConvention daycountConvention,
double[] parameter,
double timeScaling,
double periodOffset) |
| Modifier and Type | Method and Description |
|---|---|
ForwardCurveNelsonSiegelSvensson |
clone()
Create a deep copied clone.
|
CurveBuilder |
getCloneBuilder()
Returns a curve builder bases on a clone of this curve.
|
ForwardCurveNelsonSiegelSvensson |
getCloneForParameter(double[] value)
Create a clone with a modified parameter.
|
String |
getDiscountCurveName() |
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[] |
getForwards(AnalyticModel model,
double[] fixingTimes)
Returns the forwards for a given vector fixing times.
|
double[] |
getParameter()
Get the current parameter associated with the state of the objects.
|
double |
getPaymentOffset(double fixingTime)
Returns the payment offset associated with this forward curve and a corresponding fixingTime.
|
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.
|
void |
setParameter(double[] parameter)
Set the current parameter and change the state of the objects.
|
getName, getReferenceDate, getValue, getValues, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getReferenceDate, getValuepublic ForwardCurveNelsonSiegelSvensson(String name, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentDateRollConvention, DayCountConvention daycountConvention, double[] parameter, double timeScaling, double periodOffset)
name - The name of the curve. The curve can be fetched under this name when being part of an AnalyticModelFromCurvesAndVols.referenceDate - The reference date to the curve, i.e., the date associated with t=0.paymentOffsetCode - The payment offset code, like 3M, 6M, 12M, etc., used in calculating forwards from discount factors.paymentBusinessdayCalendar - The payment businessday calendar.paymentDateRollConvention - The payment date roll convention.daycountConvention - The daycount convention.parameter - The Nelson-Siegel-Svensson parameters in the order \( ( \beta_0, \beta_1, \beta_2, \beta_3, \tau_0, \tau_1 ) \).timeScaling - A scaling factor applied to t when converting from global double time to the parametric function argument t.periodOffset - An offset in ACT/365 applied to the fixing to construct the period start (the negative of the fixingOffset of the period).public ForwardCurveNelsonSiegelSvensson(String name, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendar paymentBusinessdayCalendar, BusinessdayCalendar.DateRollConvention paymentDateRollConvention, DayCountConvention daycountConvention, double[] parameter, double timeScaling)
name - The name of the curve. The curve can be fetched under this name when being part of an AnalyticModelFromCurvesAndVols.referenceDate - The reference date to the curve, i.e., the date associated with t=0.paymentOffsetCode - The payment offset code, like 3M, 6M, 12M, etc., used in calculating forwards from discount factors.paymentBusinessdayCalendar - The payment businessday calendar.paymentDateRollConvention - The payment date roll convention.daycountConvention - The daycount convention.parameter - The Nelson-Siegel-Svensson parameters in the order \( ( \beta_0, \beta_1, \beta_2, \beta_3, \tau_0, \tau_1 ) \).timeScaling - A scaling factor applied to t when converting from global double time to the parametric function argument t.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 String getDiscountCurveName()
getDiscountCurveName in interface ForwardCurvepublic CurveBuilder getCloneBuilder()
CurvegetCloneBuilder in interface Curvepublic ForwardCurveNelsonSiegelSvensson clone() throws CloneNotSupportedException
Curveclone in interface Curveclone in class AbstractCurveCloneNotSupportedException - Thrown, when the curve could not be cloned.public ForwardCurveNelsonSiegelSvensson getCloneForParameter(double[] value) throws CloneNotSupportedException
ParameterObjectgetCloneForParameter in interface ParameterObjectgetCloneForParameter in interface CurvegetCloneForParameter in class AbstractCurvevalue - The new parameter.CloneNotSupportedException - Thrown, when the curve could not be cloned.public double getValue(AnalyticModel model, double time)
Curvepublic double[] getParameter()
ParameterObjectgetParameter in interface ParameterObjectpublic double[] getForwards(AnalyticModel model, double[] fixingTimes)
model - An analytic model providing a context. The discount curve (if needed) is obtained from this model.fixingTimes - The given fixing times.public void setParameter(double[] parameter)
ParameterObjectsetParameter in interface ParameterObjectparameter - The parameter associated with the new state of the objects.public double getPaymentOffset(double fixingTime)
ForwardCurvegetPaymentOffset in interface ForwardCurvefixingTime - The fixing time of the index associated with this forward curve.Copyright © 2019. All rights reserved.