Module net.finmath.lib
Class SwaptionATMMarketDataFromArray
java.lang.Object
net.finmath.marketdata.model.volatilities.SwaptionATMMarketDataFromArray
- All Implemented Interfaces:
SwaptionMarketData
Simple swaption market data class.
The class does currently not provide a surface interpolation
like SABR.
This will be added in a future version.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionSwaptionATMMarketDataFromArray(double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
SwaptionATMMarketDataFromArray(ForwardCurve forwardCurve, DiscountCurve discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
SwaptionATMMarketDataFromArray(ForwardCurve forwardCurve, DiscountCurve discountCurve, TimeDiscretization optionMatruities, TimeDiscretization tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getTenor()
double
getValue(double optionMatruity, double tenorLength, double periodLength, double strike)
Returns the option price of a swaption for a given option maturity and tenor length.double
getVolatility(double optionMatruity, double tenorLength)
double
getVolatility(double optionMatruity, double tenorLength, double periodLength, double strike)
Returns the option implied volatility of a swaption for a given option maturity and tenor length.
-
Constructor Details
-
SwaptionATMMarketDataFromArray
public SwaptionATMMarketDataFromArray(double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities) -
SwaptionATMMarketDataFromArray
public SwaptionATMMarketDataFromArray(ForwardCurve forwardCurve, DiscountCurve discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities) -
SwaptionATMMarketDataFromArray
public SwaptionATMMarketDataFromArray(ForwardCurve forwardCurve, DiscountCurve discountCurve, TimeDiscretization optionMatruities, TimeDiscretization tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
-
Method Details
-
getOptionMaturities
- Specified by:
getOptionMaturities
in interfaceSwaptionMarketData
-
getTenor
- Specified by:
getTenor
in interfaceSwaptionMarketData
-
getSwapPeriodLength
public double getSwapPeriodLength()- Specified by:
getSwapPeriodLength
in interfaceSwaptionMarketData
-
getValue
public double getValue(double optionMatruity, double tenorLength, double periodLength, double strike)Description copied from interface:SwaptionMarketData
Returns the option price of a swaption for a given option maturity and tenor length.- Specified by:
getValue
in interfaceSwaptionMarketData
- Parameters:
optionMatruity
- 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
public double getVolatility(double optionMatruity, double tenorLength) -
getVolatility
public double getVolatility(double optionMatruity, double tenorLength, double periodLength, double strike)Description copied from interface:SwaptionMarketData
Returns the option implied volatility of a swaption for a given option maturity and tenor length.- Specified by:
getVolatility
in interfaceSwaptionMarketData
- Parameters:
optionMatruity
- 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.
-