QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Recombining trinomial tree class. More...
#include <trinomialtree.hpp>
Classes | |
class | Branching |
Public Types | |
enum | Branches { branches = 3 } |
Public Member Functions | |
TrinomialTree (const ext::shared_ptr< StochasticProcess1D > &process, const TimeGrid &timeGrid, bool isPositive=false) | |
Real | dx (Size i) const |
const TimeGrid & | timeGrid () const |
Size | size (Size i) const |
Real | underlying (Size i, Size index) const |
Size | descendant (Size i, Size index, Size branch) const |
Real | probability (Size i, Size index, Size branch) const |
Public Member Functions inherited from Tree< TrinomialTree > | |
Tree (Size columns) | |
Size | columns () const |
Protected Attributes | |
std::vector< Branching > | branchings_ |
Real | x0_ |
std::vector< Real > | dx_ |
TimeGrid | timeGrid_ |
Additional Inherited Members | |
Protected Member Functions inherited from CuriouslyRecurringTemplate< Impl > | |
CuriouslyRecurringTemplate ()=default | |
~CuriouslyRecurringTemplate ()=default | |
Impl & | impl () |
const Impl & | impl () const |
Recombining trinomial tree class.
This class defines a recombining trinomial tree approximating a 1-D stochastic process.
Definition at line 41 of file trinomialtree.hpp.
enum Branches |
Enumerator | |
---|---|
branches |
Definition at line 44 of file trinomialtree.hpp.
TrinomialTree | ( | const ext::shared_ptr< StochasticProcess1D > & | process, |
const TimeGrid & | timeGrid, | ||
bool | isPositive = false |
||
) |
const TimeGrid & timeGrid | ( | ) | const |
Definition at line 84 of file trinomialtree.hpp.
Definition at line 96 of file trinomialtree.hpp.
Definition at line 101 of file trinomialtree.hpp.
|
protected |
Definition at line 57 of file trinomialtree.hpp.
|
protected |
Definition at line 58 of file trinomialtree.hpp.
|
protected |
Definition at line 59 of file trinomialtree.hpp.
|
protected |
Definition at line 60 of file trinomialtree.hpp.