Lattice2D Class Template Reference
[Lattice methods]
#include <ql/Lattices/lattice2d.hpp>
Inheritance diagram for Lattice2D:
[legend]List of all members.
Detailed Description
template<class Impl, class T = TrinomialTree>
class QuantLib::Lattice2D< Impl, T >
Two-dimensional lattice.
This lattice is based on two trinomial trees and primarily used for the G2 short-rate model.
|
Public Member Functions |
| Lattice2D (const boost::shared_ptr< T > &tree1, const boost::shared_ptr< T > &tree2, Real correlation) |
Size | size (Size i) const |
Size | descendant (Size i, Size index, Size branch) const |
Real | probability (Size i, Size index, Size branch) const |
Protected Member Functions |
Disposable< Array > | grid (Time) const |
Protected Attributes |
boost::shared_ptr< T > | tree1_ |
boost::shared_ptr< T > | tree2_ |
|