public abstract class AbstractVolatilitySurface extends Object implements VolatilitySurface, Cloneable
VolatilitySurface.QuotingConvention| Constructor and Description |
|---|
AbstractVolatilitySurface(String name,
LocalDate referenceDate) |
AbstractVolatilitySurface(String name,
LocalDate referenceDate,
ForwardCurve forwardCurve,
DiscountCurve discountCurve,
VolatilitySurface.QuotingConvention quotingConvention,
DayCountConvention daycountConvention) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
double |
convertFromTo(AnalyticModel model,
double optionMaturity,
double optionStrike,
double value,
VolatilitySurface.QuotingConvention fromQuotingConvention,
VolatilitySurface.QuotingConvention toQuotingConvention)
Convert the value of a caplet from one quoting convention to another quoting convention.
|
double |
convertFromTo(double optionMaturity,
double optionStrike,
double value,
VolatilitySurface.QuotingConvention fromQuotingConvention,
VolatilitySurface.QuotingConvention toQuotingConvention)
Convert the value of a caplet from one quoting convention to another quoting convention.
|
DayCountConvention |
getDaycountConvention() |
DiscountCurve |
getDiscountCurve() |
ForwardCurve |
getForwardCurve() |
String |
getName()
Returns the name of the volatility surface.
|
VolatilitySurface.QuotingConvention |
getQuotingConvention()
Return the default quoting convention of this surface.
|
LocalDate |
getReferenceDate()
Return the reference date of this surface, i.e. the date
associated with t=0.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, getValuepublic AbstractVolatilitySurface(String name, LocalDate referenceDate, ForwardCurve forwardCurve, DiscountCurve discountCurve, VolatilitySurface.QuotingConvention quotingConvention, DayCountConvention daycountConvention)
public String getName()
VolatilitySurfacegetName in interface VolatilitySurfacepublic LocalDate getReferenceDate()
VolatilitySurfacegetReferenceDate in interface VolatilitySurfacepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic VolatilitySurface.QuotingConvention getQuotingConvention()
VolatilitySurfacegetQuotingConvention in interface VolatilitySurfacepublic double convertFromTo(AnalyticModel model, double optionMaturity, double optionStrike, double value, VolatilitySurface.QuotingConvention fromQuotingConvention, VolatilitySurface.QuotingConvention toQuotingConvention)
model - An analytic model providing the context when fetching required market date.optionMaturity - Option maturity of the caplet.optionStrike - Option strike of the caplet.value - Value of the caplet given in the form of fromQuotingConvention.fromQuotingConvention - The quoting convention of the given value.toQuotingConvention - The quoting convention requested.toQuotingConvention.public double convertFromTo(double optionMaturity,
double optionStrike,
double value,
VolatilitySurface.QuotingConvention fromQuotingConvention,
VolatilitySurface.QuotingConvention toQuotingConvention)
optionMaturity - Option maturity of the caplet.optionStrike - Option strike of the caplet.value - Value of the caplet given in the form of fromQuotingConvention.fromQuotingConvention - The quoting convention of the given value.toQuotingConvention - The quoting convention requested.toQuotingConvention.public ForwardCurve getForwardCurve()
public DiscountCurve getDiscountCurve()
public DayCountConvention getDaycountConvention()
Copyright © 2019. All rights reserved.