Interface LocalVolatilityCalculator
-
- All Known Implementing Classes:
DupireLocalVolatilityCalculator,ImpliedTrinomialTreeLocalVolatilityCalculator
public interface LocalVolatilityCalculatorLocal volatility calculation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SurfacelocalVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)Computes local volatility surface from implied volatility surface.SurfacelocalVolatilityFromPrice(Surface callPriceSurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)Computes local volatility surface from call price surface.
-
-
-
Method Detail
-
localVolatilityFromPrice
Surface localVolatilityFromPrice(Surface callPriceSurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
Computes local volatility surface from call price surface.The interest rate and dividend rate must be zero-coupon continuously compounded rates based on respective day count convention. Thus
interestRateanddividendRateare functions from year fraction to zero rate.- Parameters:
callPriceSurface- the price surfacespot- the spotinterestRate- the interest ratedividendRate- the dividend rate- Returns:
- the local volatility surface
-
localVolatilityFromImpliedVolatility
Surface localVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
Computes local volatility surface from implied volatility surface.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
interestRateanddividendRateare functions from year fraction to zero rate.- Parameters:
impliedVolatilitySurface- the implied volatility surfacespot- the spotinterestRate- the interest ratedividendRate- the dividend- Returns:
- the local volatility surface
-
-