public class DupireLocalVolatilityCalculator extends Object implements LocalVolatilityCalculator
Bruno Dupire, "Pricing with a Smile", Risk (1994).
| Constructor and Description |
|---|
DupireLocalVolatilityCalculator() |
| Modifier and Type | Method and Description |
|---|---|
DeformedSurface |
localVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface,
double spot,
Function<Double,Double> interestRate,
Function<Double,Double> dividendRate)
Computes local volatility surface from implied volatility surface.
|
DeformedSurface |
localVolatilityFromPrice(Surface callPriceSurface,
double spot,
Function<Double,Double> interestRate,
Function<Double,Double> dividendRate)
Computes local volatility surface from call price surface.
|
public DeformedSurface localVolatilityFromImpliedVolatility(Surface impliedVolatilitySurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
LocalVolatilityCalculatorThe 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.
localVolatilityFromImpliedVolatility in interface LocalVolatilityCalculatorimpliedVolatilitySurface - the implied volatility surfacespot - the spotinterestRate - the interest ratedividendRate - the dividendpublic DeformedSurface localVolatilityFromPrice(Surface callPriceSurface, double spot, Function<Double,Double> interestRate, Function<Double,Double> dividendRate)
LocalVolatilityCalculator
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.
localVolatilityFromPrice in interface LocalVolatilityCalculatorcallPriceSurface - the price surfacespot - the spotinterestRate - the interest ratedividendRate - the dividend rateCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.