Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

Real QuantLib::blackFormulaStdDevDerivative ( const boost::shared_ptr< PlainVanillaPayoff > &  payoff,
Real  forward,
Real  stdDev,
Real  discount = 1.0,
Real  displacement = 0.0 
)

Black 1976 formula for standard deviation derivative

Warning:
instead of volatility it uses standard deviation, i.e. volatility*sqrt(timeToMaturity), and it returns the derivative with respect to the standard deviation. If T is the time to maturity Black vega would be blackStdDevDerivative(strike, forward, stdDev)*sqrt(T)

Definition at line 313 of file blackformula.cpp.

                                           {
        return blackFormulaStdDevDerivative(payoff->strike(), forward,
                                     stdDev, discount, displacement);
    }


Generated by  Doxygen 1.6.0   Back to index