public class CapletVolatilitiesParametricFourParameterPicewiseConstant extends AbstractVolatilitySurfaceParametric
VolatilitySurface.QuotingConvention| Constructor and Description |
|---|
CapletVolatilitiesParametricFourParameterPicewiseConstant(String name,
LocalDate referenceDate,
double a,
double b,
double c,
double d,
TimeDiscretization 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(AnalyticModel model,
double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
Returns the price or implied volatility for the corresponding maturity and strike.
|
double |
getValue(double maturity,
double strike,
VolatilitySurface.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, getDaycountConvention, getDiscountCurve, getForwardCurve, getName, getQuotingConvention, getReferenceDate, toStringpublic CapletVolatilitiesParametricFourParameterPicewiseConstant(String name, LocalDate referenceDate, double a, double b, double c, double d, TimeDiscretization 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 timeDiscretizationFromArray used in numerical integration.public double getValue(double maturity,
double strike,
VolatilitySurface.QuotingConvention quotingConvention)
VolatilitySurfacematurity - 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(AnalyticModel model, double maturity, double strike, VolatilitySurface.QuotingConvention quotingConvention)
VolatilitySurfacemodel - 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()
ParameterObjectpublic void setParameter(double[] parameter)
ParameterObjectparameter - The parameter associated with the new state of the objects.public AbstractVolatilitySurfaceParametric getCloneForParameter(double[] value) throws CloneNotSupportedException
AbstractVolatilitySurfaceParametricgetCloneForParameter in interface ParameterObjectgetCloneForParameter in class AbstractVolatilitySurfaceParametricvalue - Parameter array.CloneNotSupportedException - Thrown if this object cannot be cloned.Copyright © 2019. All rights reserved.