this is a meta-function
Returns for tree intree an Nx1 vector Pvec
which accumulates values of Nx1 vector v along the path
from each node to the root.
By default, „Pvec_tree“ sums up the length values of the segments in the tree: v is then len the vector of segment lengths (see „len_tree“). Pvec then corresponds to the metric path length to the root [in µm].
Examples:
>> Pvec_tree (sample2_tree)'
[0 10.4 20.6 30.5 40.5 49.3 58.9 69.8 57.6 30.8 41 48.2 57.5 59.2 40.1]
when v contains just ones the output is 1+PL the topological path length:
>> Pvec_tree (sample2_tree, ones (N, 1))'
[1 2 3 4 5 6 7 8 7 4 5 6 7 7 5]
when v contains the branch points the output is an alternative formulation of the branch order which increases at the branch point itself:
>> Pvec_tree (sample2_tree, B_tree (sample2_tree))'
[0 0 1 1 1 2 2 2 2 2 2 3 3 3 2]
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License