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

QuantLib::BlackCalculator Class Reference

#include <blackcalculator.hpp>

Inheritance diagram for QuantLib::BlackCalculator:


List of all members.

Detailed Description

Black 1976 calculator class.

When the variance is null, division by zero occur during the calculation of delta, delta forward, gamma, gamma forward, rho, dividend rho, vega, and strike sensitivity.

Definition at line 37 of file blackcalculator.hpp.

Public Member Functions

Real alpha () const
Real beta () const
 BlackCalculator (const boost::shared_ptr< StrikedTypePayoff > &payoff, Real forward, Real stdDev, Real discount=1.0)
virtual Real delta (Real spot) const
Real deltaForward () const
Real dividendRho (Time maturity) const
virtual Real elasticity (Real spot) const
Real elasticityForward () const
virtual Real gamma (Real spot) const
Real gammaForward () const
Real itmAssetProbability () const
Real itmCashProbability () const
Real rho (Time maturity) const
Real strikeSensitivity () const
virtual Real theta (Real spot, Time maturity) const
virtual Real thetaPerDay (Real spot, Time maturity) const
Real value () const
Real vega (Time maturity) const

Protected Attributes

Real alpha_
Real beta_
Real cum_d1_
Real cum_d2_
Real D1_
Real D2_
Real DalphaDd1_
Real DbetaDd2_
Real discount_
Real DXDs_
Real DXDstrike_
Real forward_
Real n_d1_
Real n_d2_
Real stdDev_
Real strike_
Real variance_
Real X_


class Calculator


class  Calculator

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index