this is a meta-function

Returns for tree intree an Nx1 vector child with accumulated values of Nx1 vector v of all child nodes excluding the node itself.

TREES

By default v is a vector of all ones: child then simply counts up the number of child nodes.

Examples:

>> child = child_tree (sample2_tree)'

[14, 13, 12, 5, 4, 3, 1, 0, 0, 5, 3, 2, 0, 0, 0]

or just the number of termination child nodes:

>> Tchild = child_tree (sample2_tree, T_tree (sample2_tree))’

[5, 5, 5, 2, 2, 2, 1, 0, 0, 3, 2, 2, 0, 0, 0]

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License