public class SwaptionMarketData extends Object implements AbstractSwaptionMarketData
| 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) |
| Modifier and Type | Method and Description |
|---|---|
TimeDiscretizationInterface |
getOptionMaturities() |
double |
getSwapPeriodLength() |
TimeDiscretizationInterface |
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.
|
public SwaptionMarketData(double[] optionMaturities,
double[] tenor,
double swapPeriodLength,
double[][] impliedVolatilities)
public SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
public SwaptionMarketData(ForwardCurveInterface forwardCurve, DiscountCurveInterface discountCurve, TimeDiscretizationInterface optionMatruities, TimeDiscretizationInterface tenor, double swapPeriodLength, double[][] impliedVolatilities)
public TimeDiscretizationInterface getOptionMaturities()
getOptionMaturities in interface AbstractSwaptionMarketDatapublic TimeDiscretizationInterface getTenor()
getTenor in interface AbstractSwaptionMarketDatapublic double getSwapPeriodLength()
getSwapPeriodLength in interface AbstractSwaptionMarketDatapublic double getValue(double optionMatruity,
double tenorLength,
double periodLength,
double strike)
AbstractSwaptionMarketDatagetValue in interface AbstractSwaptionMarketDataoptionMatruity - The option maturity.tenorLength - The tenor length.periodLength - The period length of the floating rate period.strike - The strike (swap) rate.public double getVolatility(double optionMatruity,
double tenorLength)
public double getVolatility(double optionMatruity,
double tenorLength,
double periodLength,
double strike)
AbstractSwaptionMarketDatagetVolatility in interface AbstractSwaptionMarketDataoptionMatruity - The option maturity.tenorLength - The tenor length.periodLength - The period length of the floating rate period.strike - The strike (swap) rate.Copyright © 2017. All rights reserved.