net.finmath.marketdata.model.volatilities
Interface VolatilitySurfaceInterface
-
- All Known Implementing Classes:
- AbstractVolatilitySurface, AbstractVolatilitySurfaceParametric, CapletVolatilities, CapletVolatilitiesParametric, CapletVolatilitiesParametricFourParameterPicewiseConstant
public interface VolatilitySurfaceInterfaceInterface for classes representing a volatility surface, i.e. European option prices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classVolatilitySurfaceInterface.QuotingConventionQuoting conventions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetName()Returns the name of the volatility surface.VolatilitySurfaceInterface.QuotingConventiongetQuotingConvention()Return the default quoting convention of this surface.java.util.CalendargetReferenceDate()Return the reference date of this surface, i.e.doublegetValue(AnalyticModelInterface model, double maturity, double strike, VolatilitySurfaceInterface.QuotingConvention quotingConvention)Returns the price or implied volatility for the corresponding maturity and strike.doublegetValue(double maturity, double strike, VolatilitySurfaceInterface.QuotingConvention quotingConvention)Returns the price or implied volatility for the corresponding maturity and strike.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the volatility surface.- Returns:
- The name of the volatility surface.
-
getReferenceDate
java.util.Calendar getReferenceDate()
Return the reference date of this surface, i.e. the date associated with t=0.- Returns:
- The date identified as t=0.
-
getValue
double getValue(double maturity, double strike, VolatilitySurfaceInterface.QuotingConvention quotingConvention)Returns the price or implied volatility for the corresponding maturity and strike.- Parameters:
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.- Returns:
- The price or implied volatility depending on the quoting convention.
-
getValue
double getValue(AnalyticModelInterface model, double maturity, double strike, VolatilitySurfaceInterface.QuotingConvention quotingConvention)
Returns the price or implied volatility for the corresponding maturity and strike.- Parameters:
model- 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.- Returns:
- The price or implied volatility depending on the quoting convention.
-
getQuotingConvention
VolatilitySurfaceInterface.QuotingConvention getQuotingConvention()
Return the default quoting convention of this surface.- Returns:
- the quotingConvention
-
-
DataMelt 3.0 © DataMelt by jWork.ORG