Skip to content

Filtering Small nodes from tree #207

Answered by PerretB
sha2006 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, don't worry, this place is there to ask such questions :)

Edit: in the new default behaviour the results of these functions are canonized and they will have less nodes than the input tree. The old behaviour is obtained by setting the param canonize_tree equals to False

Old answer:

Indeed, the filter_xxx_nodes_from_tree functions yield binary partition trees which implies that there is always 2n - 1 nodes in these trees. But it is possible that:

  • a child node has the same altitude as its parent node: while being separated, these nodes then represent the same region
  • a non leaf node (and all its descendants) has an altitude equal to 0: then all these nodes are indeed in a same superpi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PerretB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #207 on December 10, 2020 18:16.