Canopy
1.0
The header-only random forests library
|
Tree structure - represents a single tree. More...
#include <randomForestBase.hpp>
Public Attributes | |
std::vector< node > | nodes |
Vector of the nodes. | |
Tree structure - represents a single tree.
Nodes are arranged within the tree starting from the root node and moving across levels followed by down levels such that index 0 is the root, indices 1 and 2 are in the second layer, indices 3,4,5, and 6 are in the third layer and so on. This means that the children of node n are 2*n+1 and 2*n+2.