This file describes how trees are stored in files for further handling, as explained in the helpfile of the function logregtree(). When storing trees, we number the location of the nodes using the following scheme. This is an example for a tree with at most 8 terminal nodes, but the generalization should be obvious.
Each node may or may not be present in the current tree. If it is present, it can contain an operator (``and'' or ``or''), in which case it has to child nodes, or it can contain a variable, in which case the node is a terminal node. It is also possible that the node does not exist (as the user only specifies the maximum tree size, not the tree size that is actually fitted).
Output files have one line for each node. Each line contains 5 numbers:
The above tree is represented as