Module net.finmath.lib
Interface SwaptionMarketData
-
- All Known Implementing Classes:
SwaptionATMMarketDataFromArray
public interface SwaptionMarketDataBasic interface to be implemented by classes providing swaption market data.- Version:
- 1.0
- Author:
- Christian Fries
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeDiscretizationgetOptionMaturities()doublegetSwapPeriodLength()TimeDiscretizationgetTenor()doublegetValue(double optionMaturity, double tenorLength, double periodLength, double strike)Returns the option price of a swaption for a given option maturity and tenor length.doublegetVolatility(double optionMaturity, double tenorLength, double periodLength, double strike)Returns the option implied volatility of a swaption for a given option maturity and tenor length.
-
-
-
Method Detail
-
getOptionMaturities
TimeDiscretization getOptionMaturities()
-
getTenor
TimeDiscretization getTenor()
-
getSwapPeriodLength
double getSwapPeriodLength()
-
getValue
double getValue(double optionMaturity, double tenorLength, double periodLength, double strike)Returns the option price of a swaption for a given option maturity and tenor length.- Parameters:
optionMaturity- The option maturity.tenorLength- The tenor length.periodLength- The period length of the floating rate period.strike- The strike (swap) rate.- Returns:
- The option price.
-
getVolatility
double getVolatility(double optionMaturity, double tenorLength, double periodLength, double strike)Returns the option implied volatility of a swaption for a given option maturity and tenor length.- Parameters:
optionMaturity- The option maturity.tenorLength- The tenor length.periodLength- The period length of the floating rate period.strike- The strike (swap) rate.- Returns:
- The implied volatility.
-
-