Returns for tree intree an Nx1 vector C
which is one if a given node is a continuation point (exactly 1 daughter node) and zero else.
Example:
>> C = C_tree (sample2_tree)'
[1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0]
>> sum (C) → number of continuation points
4
>> find (C) → indices of continuation points
[1, 2, 4, 5, 7, 11]
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License