java.lang.Object
net.finmath.marketdata.model.curves.DiscountCurveRenormalized
- All Implemented Interfaces:
Serializable,Cloneable,ParameterObject,Curve,DiscountCurve
A discount curve \( t \mapsto df(t) \) with property \( df(t_{0}) = 1 \) for a given
\( t_{0} \) derived from a base discount curve by a constant skaling.
- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionDiscountCurveRenormalized(String name, LocalDate referenceDate, LocalDate spotDate, String baseCurveName) -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a deep copied clone.Returns a curve builder bases on a clone of this curve.getCloneForParameter(double[] value)Create a clone with a modified parameter.doublegetDiscountFactor(double maturity)Returns the discount factor for the corresponding maturity.doublegetDiscountFactor(AnalyticModel model, double maturity)Returns the discount factor for the corresponding maturity.getName()Get the name of the curve.double[]Get the current parameter associated with the state of the objects.Return the reference date of this curve, i.e.doublegetValue(double time)Returns the value for the time using the interpolation method associated with this curve.doublegetValue(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.voidsetParameter(double[] parameter)Set the current parameter and change the state of the objects.
-
Constructor Details
-
DiscountCurveRenormalized
-
-
Method Details
-
getName
Description copied from interface:CurveGet the name of the curve. -
getReferenceDate
Description copied from interface:CurveReturn the reference date of this curve, i.e. the date associated with t=0. May be null in case the curve is not associated with a fixed date (e.g. a time homogenous model).- Specified by:
getReferenceDatein interfaceCurve- Returns:
- The date identified as t=0.
-
getValue
public double getValue(double time)Description copied from interface:CurveReturns the value for the time using the interpolation method associated with this curve. -
getValue
Description copied from interface:CurveReturns the value for the time using the interpolation method associated with this curve within a given context, i.e., a model. The model (context) is needed only if the curve relies on another curve. Examples are a forward curve which relies on a discount curve or a discount curve which is defined via a spread over another curve. -
getCloneBuilder
Description copied from interface:CurveReturns a curve builder bases on a clone of this curve. Using that curve builder you may create a new curve from this curve by adding points or changing properties. Note: The clone has the same name than this one.- Specified by:
getCloneBuilderin interfaceCurve- Returns:
- An object implementing the CurveBuilderInterface where the underlying curve is a clone of this curve.
-
getCloneForParameter
Description copied from interface:ParameterObjectCreate a clone with a modified parameter.- Specified by:
getCloneForParameterin interfaceCurve- Specified by:
getCloneForParameterin interfaceParameterObject- Parameters:
value- The new parameter.- Returns:
- A clone with an otherwise modified parameter.
- Throws:
CloneNotSupportedException- Thrown, when the curve could not be cloned.
-
getParameter
public double[] getParameter()Description copied from interface:ParameterObjectGet the current parameter associated with the state of the objects.- Specified by:
getParameterin interfaceParameterObject- Returns:
- The parameter.
-
setParameter
public void setParameter(double[] parameter)Description copied from interface:ParameterObjectSet the current parameter and change the state of the objects.- Specified by:
setParameterin interfaceParameterObject- Parameters:
parameter- The parameter associated with the new state of the objects.
-
getDiscountFactor
public double getDiscountFactor(double maturity)Description copied from interface:DiscountCurveReturns the discount factor for the corresponding maturity. This getter is not optimized for performance.- Specified by:
getDiscountFactorin interfaceDiscountCurve- Parameters:
maturity- The maturity for which the discount factor is requested.- Returns:
- The discount factor (i.e., price of the zero coupon bond with given maturity and notional 1.
-
getDiscountFactor
Description copied from interface:DiscountCurveReturns the discount factor for the corresponding maturity. This getter is not optimized for performance.- Specified by:
getDiscountFactorin interfaceDiscountCurve- Parameters:
model- An analytic model providing a context. Some curves do not need this (can be null).maturity- The maturity for which the discount factor is requested.- Returns:
- The discount factor (i.e., price of the zero coupon bond with given maturity and notional 1.
-
clone
Description copied from interface:CurveCreate a deep copied clone.
-