Module net.finmath.lib
Class SwaptionATMMarketDataFromArray
- java.lang.Object
-
- net.finmath.marketdata.model.volatilities.SwaptionATMMarketDataFromArray
-
- All Implemented Interfaces:
SwaptionMarketData
public class SwaptionATMMarketDataFromArray extends Object implements 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
Constructors Constructor Description SwaptionATMMarketDataFromArray(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeDiscretizationgetOptionMaturities()doublegetSwapPeriodLength()TimeDiscretizationgetTenor()doublegetValue(double optionMatruity, double tenorLength, double periodLength, double strike)Returns the option price of a swaption for a given option maturity and tenor length.doublegetVolatility(double optionMatruity, double tenorLength)doublegetVolatility(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 Detail
-
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 Detail
-
getOptionMaturities
public TimeDiscretization getOptionMaturities()
- Specified by:
getOptionMaturitiesin interfaceSwaptionMarketData
-
getTenor
public TimeDiscretization getTenor()
- Specified by:
getTenorin interfaceSwaptionMarketData
-
getSwapPeriodLength
public double getSwapPeriodLength()
- Specified by:
getSwapPeriodLengthin interfaceSwaptionMarketData
-
getValue
public double getValue(double optionMatruity, double tenorLength, double periodLength, double strike)Description copied from interface:SwaptionMarketDataReturns the option price of a swaption for a given option maturity and tenor length.- Specified by:
getValuein 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:SwaptionMarketDataReturns the option implied volatility of a swaption for a given option maturity and tenor length.- Specified by:
getVolatilityin 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.
-
-