Financial Derivatives Toolbox | ![]() ![]() |
Syntax
[Tree, NumStates] = mkbush(NumLevels, NumChild, NumPos, Trim, NodeVal)
Arguments
Description
[Tree, NumStates] = mkbush(NumLevels, NumChild, NumPos, Trim,
NodeVal)
creates a bushy tree Tree
with initial values NodeVal
at each node. NumStates
is a 1
-by-NUMLEVELS
vector containing the number of state vectors in each level.
Example
Create a tree with four time levels, two branches per node, and a vector of three elements in each node with each element initialized to NaN
.
Tree = mkbush(4, 2, 3)
See Also
![]() | isafin | mmktbyhjm | ![]() |