public class CapletVolatilitiesParametricFourParameterPicewiseConstant extends AbstractVolatilitySurfaceParametric
VolatilitySurfaceInterface.QuotingConventiondaycountConvention, discountCurve, forwardCurve, quotingConvention| Constructor and Description |
|---|
CapletVolatilitiesParametricFourParameterPicewiseConstant(String name,
java.time.LocalDate referenceDate,
double a,
double b,
double c,
double d,
TimeDiscretizationInterface timeDiscretization)
Create a model with parameters a,b,c,d.
|
| 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 CapletVolatilitiesParametricFourParameterPicewiseConstant(String name, java.time.LocalDate referenceDate, double a, double b, double c, double d, TimeDiscretizationInterface timeDiscretization)
name - The name of this volatility surface.referenceDate - The reference date for this volatility surface, i.e., the date which defined t=0.a - The parameter ab - The parameter bc - The parameter cd - The parameter dtimeDiscretization - The timeDiscretization used in numerical integration.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.