public interface LocalVolatilityCalculator
Modifier and Type | Method and Description |
---|---|
Surface |
localVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface,
double spot,
Function<Double,Double> interestRate,
Function<Double,Double> dividendRate)
Computes local volatility surface from implied volatility surface.
|
Surface |
localVolatilityFromPrice(Surface callPriceSurface,
double spot,
Function<Double,Double> interestRate,
Function<Double,Double> dividendRate)
Computes local volatility surface from call price surface.
|
Surface localVolatilityFromPrice(Surface callPriceSurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
The interest rate and dividend rate must be zero-coupon continuously compounded rates based on respective day
count convention.
Thus interestRate
and dividendRate
are functions from year fraction to zero rate.
callPriceSurface
- the price surfacespot
- the spotinterestRate
- the interest ratedividendRate
- the dividend rateSurface localVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
The implied volatility surface must be spanned by time to expiry and strike.
The interest rate and dividend rate must be zero-coupon continuously compounded rates based on
respective day count convention.
Thus interestRate
and dividendRate
are functions from year fraction to zero rate.
impliedVolatilitySurface
- the implied volatility surfacespot
- the spotinterestRate
- the interest ratedividendRate
- the dividendCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.