TrinomialTree Class Reference
[Lattice methods]

#include <ql/Lattices/trinomialtree.hpp>

Inheritance diagram for TrinomialTree:

Inheritance graph
[legend]
List of all members.

Detailed Description

Recombining trinomial tree class.

This class defines a recombining trinomial tree approximating a a diffusion.

Warning:
The diffusion term of the SDE must be independent of the underlying process.


Public Member Functions

 TrinomialTree (const boost::shared_ptr< StochasticProcess > &process, const TimeGrid &timeGrid, bool isPositive=false)
Real dx (Size i) const
Size size (Size i) const
Real underlying (Size i, Size index) const
const TimeGridtimeGrid () const
Size descendant (Size i, Size index, Size branch) const
Real probability (Size i, Size index, Size branch) const

Protected Attributes

std::vector< boost::shared_ptr<
TrinomialBranching > > 
branchings_
Real x0_
std::vector< Realdx_
TimeGrid timeGrid_


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen