Class BlackScholesModel

    • Constructor Detail

      • BlackScholesModel

        public BlackScholesModel​(LocalDate referenceDate,
                                 double initialValue,
                                 DiscountCurve discountCurveForForwardRate,
                                 DiscountCurve discountCurveForDiscountRate,
                                 double volatility)
        Create a Black Scholes model (characteristic function)
        Parameters:
        referenceDate - The date representing the time t = 0. All other double times are following FloatingpointDate.
        initialValue - \( S_{0} \) - spot - initial value of S
        discountCurveForForwardRate - The curve specifying \( t \mapsto exp(- r^{\text{c}}(t) \cdot t) \) - with \( r^{\text{c}}(t) \) the risk free rate
        discountCurveForDiscountRate - The curve specifying \( t \mapsto exp(- r^{\text{d}}(t) \cdot t) \) - with \( r^{\text{d}}(t) \) the discount rate
        volatility - \( \sigma \) the volatility level
      • BlackScholesModel

        public BlackScholesModel​(double initialValue,
                                 double riskFreeRate,
                                 double discountRate,
                                 double volatility)
        Create a Black Scholes model (characteristic function)
        Parameters:
        initialValue - \( S_{0} \) - spot - initial value of S
        riskFreeRate - \( r^{\text{c}} \) - the risk free rate
        discountRate - \( r^{\text{d}} \) - the discount rate
        volatility - \( \sigma \) the volatility level
      • BlackScholesModel

        public BlackScholesModel​(double initialValue,
                                 double riskFreeRate,
                                 double volatility)
        Create a Black Scholes model (characteristic function)
        Parameters:
        initialValue - \( S_{0} \) - spot - initial value of S
        riskFreeRate - \( r^{\text{c}} \) - the risk free rate
        volatility - \( \sigma \) the volatility level
    • Method Detail

      • getReferenceDate

        public LocalDate getReferenceDate()
        Returns:
        the referenceDate
      • getInitialValue

        public double getInitialValue()
        Returns:
        the initialValue
      • getDiscountCurveForForwardRate

        public DiscountCurve getDiscountCurveForForwardRate()
        Returns:
        the discountCurveForForwardRate
      • getRiskFreeRate

        public double getRiskFreeRate()
        Returns:
        the riskFreeRate
      • getDiscountCurveForDiscountRate

        public DiscountCurve getDiscountCurveForDiscountRate()
        Returns:
        the discountCurveForDiscountRate
      • getDiscountRate

        public double getDiscountRate()
        Returns:
        the discountRate
      • getVolatility

        public double getVolatility()
        Returns:
        the volatility