BinomialVanillaEngine Class Template Reference
[Vanilla option engines]

#include <ql/pricingengines/vanilla/binomialengine.hpp>

List of all members.


Detailed Description

template<class T>
class QuantLib::BinomialVanillaEngine< T >

Pricing engine for vanilla options using binomial trees.

Tests:
the correctness of the returned values is tested by checking it against analytic results.
Todo:
Greeks are not overly accurate. They could be improved by building a tree so that it has three points at the current time. The value would be fetched from the middle one, while the two side points would be used for estimating partial derivatives.
Examples:

EquityOption.cpp.


Public Member Functions

 BinomialVanillaEngine (Size timeSteps)
void calculate () const