net.finmath.marketdata.model.volatilities
Class SwaptionMarketData
- java.lang.Object
-
- net.finmath.marketdata.model.volatilities.SwaptionMarketData
-
- All Implemented Interfaces:
- AbstractSwaptionMarketData
public class SwaptionMarketData extends java.lang.Object implements AbstractSwaptionMarketData
Simple swaption market data class. The class does currently not provide a surface interpolation like SABR. This will be added in a future version.
-
-
Constructor Summary
Constructors Constructor and Description SwaptionMarketData(double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, TimeDiscretizationInterface optionMatruities, TimeDiscretizationInterface tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TimeDiscretizationInterfacegetOptionMaturities()doublegetSwapPeriodLength()TimeDiscretizationInterfacegetTenor()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
-
SwaptionMarketData
public SwaptionMarketData(double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
SwaptionMarketData
public SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
SwaptionMarketData
public SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, TimeDiscretizationInterface optionMatruities, TimeDiscretizationInterface tenor, double swapPeriodLength, double[][] impliedVolatilities)
-
-
Method Detail
-
getOptionMaturities
public TimeDiscretizationInterface getOptionMaturities()
- Specified by:
getOptionMaturitiesin interfaceAbstractSwaptionMarketData
-
getTenor
public TimeDiscretizationInterface getTenor()
- Specified by:
getTenorin interfaceAbstractSwaptionMarketData
-
getSwapPeriodLength
public double getSwapPeriodLength()
- Specified by:
getSwapPeriodLengthin interfaceAbstractSwaptionMarketData
-
getValue
public double getValue(double optionMatruity, double tenorLength, double periodLength, double strike)Description copied from interface:AbstractSwaptionMarketDataReturns the option price of a swaption for a given option maturity and tenor length.- Specified by:
getValuein interfaceAbstractSwaptionMarketData- 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:AbstractSwaptionMarketDataReturns the option implied volatility of a swaption for a given option maturity and tenor length.- Specified by:
getVolatilityin interfaceAbstractSwaptionMarketData- 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG