java.lang.Object
net.finmath.marketdata.model.curves.AbstractCurve
net.finmath.marketdata.model.curves.PiecewiseCurve
net.finmath.marketdata.model.curves.ForwardCurveWithFixings
- All Implemented Interfaces:
Serializable,Cloneable,ParameterObject,Curve,ForwardCurve
- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class net.finmath.marketdata.model.curves.PiecewiseCurve
PiecewiseCurve.Builder -
Constructor Summary
ConstructorsConstructorDescriptionForwardCurveWithFixings(ForwardCurve curveInterface, ForwardCurve fixedPartCurve, double fixedPartStartTime, double fixedPartEndTime)Create a piecewise forward curve. -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a deep copied clone.getCloneForParameter(double[] value)Create a clone with a modified parameter.doublegetForward(AnalyticModel model, double fixingTime)Returns the forward for the corresponding fixing time.doublegetForward(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.doublegetPaymentOffset(double fixingTime)Returns the payment offset associated with this forward curve and a corresponding fixingTime.Methods inherited from class net.finmath.marketdata.model.curves.PiecewiseCurve
getBaseCurve, getCloneBuilder, getFixedPartCurve, getFixedPartEndTime, getFixedPartStartTime, getName, getParameter, getReferenceDate, getValue, getValue, setParameter, toStringMethods inherited from class net.finmath.marketdata.model.curves.AbstractCurve
getValuesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.finmath.marketdata.model.curves.Curve
getCloneBuilder, getName, getReferenceDate, getValue, getValueMethods inherited from interface net.finmath.marketdata.calibration.ParameterObject
getParameter, setParameter
-
Constructor Details
-
ForwardCurveWithFixings
public ForwardCurveWithFixings(ForwardCurve curveInterface, ForwardCurve fixedPartCurve, double fixedPartStartTime, double fixedPartEndTime)Create a piecewise forward curve.- Parameters:
curveInterface- Base curve, to be used by default.fixedPartCurve- CurveFromInterpolationPoints to be used for the open time interval from fixedPartStartTime to fixedPartEndTime.fixedPartStartTime- Start time of the interval where we use the fixedPartCurve.fixedPartEndTime- End time of the interval where we use the fixedPartCurve.
-
-
Method Details
-
getForward
Description copied from interface:ForwardCurveReturns the forward for the corresponding fixing time.- Specified by:
getForwardin interfaceForwardCurve- Parameters:
model- 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.- Returns:
- The forward.
-
getForward
Description copied from interface:ForwardCurveReturns the forward for the corresponding fixing time and paymentOffset.- Specified by:
getForwardin interfaceForwardCurve- Parameters:
model- 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.- Returns:
- The forward.
-
getForwards
Returns the forwards for a given vector fixing times.- Parameters:
model- An analytic model providing a context. The discount curve (if needed) is obtained from this model.fixingTimes- The given fixing times.- Returns:
- The forward rates.
-
getDiscountCurveName
- Specified by:
getDiscountCurveNamein interfaceForwardCurve- Returns:
- The name of the discount curve associated with this forward curve (e.g. OIS for collateralized forwards)
-
getPaymentOffset
public double getPaymentOffset(double fixingTime)Description copied from interface:ForwardCurveReturns the payment offset associated with this forward curve and a corresponding fixingTime.- Specified by:
getPaymentOffsetin interfaceForwardCurve- Parameters:
fixingTime- The fixing time of the index associated with this forward curve.- Returns:
- The payment offset associated with this forward curve.
-
getCloneForParameter
Description copied from interface:ParameterObjectCreate a clone with a modified parameter.- Specified by:
getCloneForParameterin interfaceCurve- Specified by:
getCloneForParameterin interfaceParameterObject- Overrides:
getCloneForParameterin classPiecewiseCurve- Parameters:
value- The new parameter.- Returns:
- A clone with an otherwise modified parameter.
- Throws:
CloneNotSupportedException- Thrown, when the curve could not be cloned.
-
clone
Description copied from interface:CurveCreate a deep copied clone.- Specified by:
clonein interfaceCurve- Overrides:
clonein classPiecewiseCurve- Returns:
- A clone (deep copied).
- Throws:
CloneNotSupportedException- Thrown, when the curve could not be cloned.
-