Class LinearSmileInterpolater

    • Constructor Detail

      • LinearSmileInterpolater

        public LinearSmileInterpolater​(double[][] volatilityMatrix,
                                       double[] strikeVector)
    • Method Detail

      • calculateInterpolatedExtrapolatedSmileVolatility

        public double calculateInterpolatedExtrapolatedSmileVolatility​(double strike,
                                                                       int rowIndex)
        Method that returns the linearly interpolated or constantly extrapolated volatility for a given strike and row index.
        Specified by:
        calculateInterpolatedExtrapolatedSmileVolatility in interface SmileInterpolationExtrapolationMethod
        Parameters:
        strike - The desired strike.
        rowIndex - The desired row index.
        Returns:
        The inter/extrapolated volatility.