QuantLib
A free/open-source library for quantitative finance
Reference manual - version 1.20
Public Types | Public Member Functions | Protected Attributes | List of all members
BinomialTree< T > Class Template Reference

Binomial tree base class. More...

#include <ql/methods/lattices/binomialtree.hpp>

+ Inheritance diagram for BinomialTree< T >:

Public Types

enum  Branches { branches = 2 }
 

Public Member Functions

 BinomialTree (const ext::shared_ptr< StochasticProcess1D > &process, Time end, Size steps)
 
Size size (Size i) const
 
Size descendant (Size, Size index, Size branch) const
 
- Public Member Functions inherited from Tree< T >
 Tree (Size columns)
 
Size columns () const
 

Protected Attributes

Real x0_
 
Real driftPerStep_
 
Time dt_
 

Additional Inherited Members

- Protected Member Functions inherited from CuriouslyRecurringTemplate< T >
T & impl ()
 
const T & impl () const
 

Detailed Description

template<class T>
class QuantLib::BinomialTree< T >

Binomial tree base class.