this is a meta-function

Returns for tree intree an Nx1 vector ratio which takes the ratios of values of Nx1 vector v at the node itself and its direct parent idpar.


By default, „ratio_tree“ compares diameter values: v is then just D. However, any other values can be chosen here. ratio is just v/v(idpar).


>> ratio_tree (sample2_tree)'

[1 0.82 0.82 0.87 0.82 0.83 0.95 0.86 0.75 0.78 0.87 0.85 0.81 0.9 0.58]

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