public class SwaptionMarketData extends Object implements AbstractSwaptionMarketData
| Constructor and Description |
|---|
SwaptionMarketData(double[] optionMaturities,
double[] tenor,
double swapPeriodLength,
double[][] impliedVolatilities) |
SwaptionMarketData(ForwardCurve forwardCurve,
DiscountCurve discountCurve,
double[] optionMaturities,
double[] tenor,
double swapPeriodLength,
double[][] impliedVolatilities) |
SwaptionMarketData(ForwardCurve forwardCurve,
DiscountCurve discountCurve,
TimeDiscretization optionMatruities,
TimeDiscretization tenor,
double swapPeriodLength,
double[][] impliedVolatilities) |
| Modifier and Type | Method and Description |
|---|---|
TimeDiscretization |
getOptionMaturities() |
double |
getSwapPeriodLength() |
TimeDiscretization |
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(ForwardCurve forwardCurve, DiscountCurve discountCurve, double[] optionMaturities, double[] tenor, double swapPeriodLength, double[][] impliedVolatilities)
public SwaptionMarketData(ForwardCurve forwardCurve, DiscountCurve discountCurve, TimeDiscretization optionMatruities, TimeDiscretization tenor, double swapPeriodLength, double[][] impliedVolatilities)
public TimeDiscretization getOptionMaturities()
getOptionMaturities in interface AbstractSwaptionMarketDatapublic TimeDiscretization 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 © 2019. All rights reserved.