Canopy  1.0
The header-only random forests library
Public Attributes | List of all members
canopy::randomForestBase< TDerived, TLabel, TNodeDist, TOutputDist, TNumParams >::tree Struct Reference

Tree structure - represents a single tree. More...

#include <randomForestBase.hpp>

Collaboration diagram for canopy::randomForestBase< TDerived, TLabel, TNodeDist, TOutputDist, TNumParams >::tree:
Collaboration graph
[legend]

Public Attributes

std::vector< nodenodes
 Vector of the nodes.
 

Detailed Description

template<class TDerived, class TLabel, class TNodeDist, class TOutputDist, unsigned TNumParams>
struct canopy::randomForestBase< TDerived, TLabel, TNodeDist, TOutputDist, TNumParams >::tree

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.


The documentation for this struct was generated from the following file: