public class CapletVolatilitiesParametricDisplacedFourParameterAnalytic extends AbstractVolatilitySurfaceParametric
VolatilitySurfaceInterface.QuotingConventiondaycountConvention, discountCurve, forwardCurve, quotingConvention| Constructor and Description |
|---|
CapletVolatilitiesParametricDisplacedFourParameterAnalytic(String name,
LocalDate referenceDate,
ForwardCurveInterface forwardCurve,
DiscountCurveInterface discountCurve,
double displacement,
boolean isDisplacementCalibrateable,
double a,
double b,
double c,
double d,
double timeScaling)
Create a model with parameters a,b,c,d defining a displaced lognormal volatility surface.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractVolatilitySurfaceParametric |
getCloneForParameter(double[] value)
Returns a clone of this volatility surface with modified parameters.
|
double[] |
getParameter()
Get the current parameter associated with the state of the objects.
|
double |
getValue(AnalyticModelInterface model,
double maturity,
double strike,
VolatilitySurfaceInterface.QuotingConvention quotingConvention)
Returns the price or implied volatility for the corresponding maturity and strike.
|
double |
getValue(double maturity,
double strike,
VolatilitySurfaceInterface.QuotingConvention quotingConvention)
Returns the price or implied volatility for the corresponding maturity and strike.
|
void |
setParameter(double[] parameter)
Set the current parameter and change the state of the objects.
|
getCloneCalibrated, getCloneCalibrated, getCloneCalibratedclone, convertFromTo, convertFromTo, getName, getQuotingConvention, getReferenceDate, toStringpublic CapletVolatilitiesParametricDisplacedFourParameterAnalytic(String name, LocalDate referenceDate, ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, double displacement, boolean isDisplacementCalibrateable, double a, double b, double c, double d, double timeScaling)
name - The name of this volatility surface.referenceDate - The reference date for this volatility surface, i.e., the date which defined t=0.forwardCurve - The underlying forward curve.discountCurve - The associated discount curve.displacement - The displacement for the forward rate.isDisplacementCalibrateable - Boolean specifying if the displacement parameter is considered a free parameter of the model.a - The parameter ab - The parameter bc - The parameter cd - The parameter dtimeScaling - A scaling factor applied to t when converting from global double time to the parametric function argument t.public double getValue(double maturity,
double strike,
VolatilitySurfaceInterface.QuotingConvention quotingConvention)
VolatilitySurfaceInterfacematurity - The option maturity for which the price or implied volatility is requested.strike - The option strike for which the price or implied volatility is requested.quotingConvention - The quoting convention to be used for the return value.public double getValue(AnalyticModelInterface model, double maturity, double strike, VolatilitySurfaceInterface.QuotingConvention quotingConvention)
VolatilitySurfaceInterfacemodel - An analytic model providing a context. Some curves do not need this (may be null).maturity - The option maturity for which the price or implied volatility is requested.strike - The option strike for which the price or implied volatility is requested.quotingConvention - The quoting convention to be used for the return value.public double[] getParameter()
ParameterObjectInterfacepublic void setParameter(double[] parameter)
ParameterObjectInterfaceparameter - The parameter associated with the new state of the objects.public AbstractVolatilitySurfaceParametric getCloneForParameter(double[] value) throws CloneNotSupportedException
AbstractVolatilitySurfaceParametricgetCloneForParameter in interface ParameterObjectInterfacegetCloneForParameter in class AbstractVolatilitySurfaceParametricvalue - Parameter array.CloneNotSupportedException - Thrown if this object cannot be cloned.Copyright © 2017. All rights reserved.