Class DupireLocalVolatilityCalculator

    • Constructor Detail

      • DupireLocalVolatilityCalculator

        public DupireLocalVolatilityCalculator()
    • Method Detail

      • localVolatilityFromImpliedVolatility

        public DeformedSurface localVolatilityFromImpliedVolatility​(Surface impliedVolatilitySurface,
                                                                    double spot,
                                                                    Function<Double,​Double> interestRate,
                                                                    Function<Double,​Double> dividendRate)
        Description copied from interface: LocalVolatilityCalculator
        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 interestRate and dividendRate are functions from year fraction to zero rate.

        Specified by:
        localVolatilityFromImpliedVolatility in interface LocalVolatilityCalculator
        Parameters:
        impliedVolatilitySurface - the implied volatility surface
        spot - the spot
        interestRate - the interest rate
        dividendRate - the dividend
        Returns:
        the local volatility surface
      • localVolatilityFromPrice

        public DeformedSurface localVolatilityFromPrice​(Surface callPriceSurface,
                                                        double spot,
                                                        Function<Double,​Double> interestRate,
                                                        Function<Double,​Double> dividendRate)
        Description copied from interface: LocalVolatilityCalculator
        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 interestRate and dividendRate are functions from year fraction to zero rate.

        Specified by:
        localVolatilityFromPrice in interface LocalVolatilityCalculator
        Parameters:
        callPriceSurface - the price surface
        spot - the spot
        interestRate - the interest rate
        dividendRate - the dividend rate
        Returns:
        the local volatility surface