public class CapletVolatilitiesParametric extends AbstractVolatilitySurfaceParametric
VolatilitySurface.QuotingConvention| Constructor and Description |
|---|
CapletVolatilitiesParametric(String name,
LocalDate referenceDate,
double a,
double b,
double c,
double d)
Create a model with parameters a,b,c,d.
|
CapletVolatilitiesParametric(String name,
LocalDate referenceDate,
double a,
double b,
double c,
double d,
double timeScaling)
Create a model with parameters a,b,c,d.
|
CapletVolatilitiesParametric(String name,
LocalDate referenceDate,
ForwardCurve forwardCurve,
DiscountCurve discountCurve,
double a,
double b,
double c,
double d,
double timeScaling)
Create a model with parameters a,b,c,d defining a lognormal volatility surface.
|
CapletVolatilitiesParametric(String name,
LocalDate referenceDate,
ForwardCurve forwardCurve,
DiscountCurve discountCurve,
double a,
double b,
double c,
double d,
double timeScaling,
VolatilitySurface.QuotingConvention quotingConvention)
Create a model with parameters a,b,c,d defining a 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(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 CapletVolatilitiesParametric(String name, LocalDate referenceDate, ForwardCurve forwardCurve, DiscountCurve discountCurve, double a, double b, double c, double d, double timeScaling, VolatilitySurface.QuotingConvention quotingConvention)
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.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.quotingConvention - The quoting convention reflected by the parametetric form (e.g. lognormal or normal).public CapletVolatilitiesParametric(String name, LocalDate referenceDate, ForwardCurve forwardCurve, DiscountCurve discountCurve, 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.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 CapletVolatilitiesParametric(String name, LocalDate referenceDate, 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.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 CapletVolatilitiesParametric(String name, LocalDate referenceDate, double a, double b, double c, double d)
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 dpublic 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.