Finance
GetSize
get the size of a binomial/trinomial tree at the given level
Calling Sequence
Parameters
Description
Examples
Compatibility
GetSize(T, i)
T
-
binomial or trinomial tree data structure
i
positive integer; level
The GetSize command returns the number of nodes at level i of the tree T. See GetDescendants for more details about node indexing.
with⁡Finance:
M≔VasicekModel⁡0.05,0.03,0.5,0.03
M ≔ moduleend module
T≔ShortRateTree⁡M,3,20
T ≔ moduleend module
TreePlot⁡T,thickness=2,axes=BOXED,gridlines=true
GetSize⁡T,1
1
GetSize⁡T,2
3
GetSize⁡T,3
5
GetSize⁡T,10
15
GetSize⁡T,11
The Finance[GetSize] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[BinomialTree]
Finance[GetDescendants]
Finance[GetProbabilities]
Finance[SetProbabilities]
Finance[TrinomialTree]
Download Help Document