Stopping criteria for tree construction. More...
#include <shark/Models/Trees/BinaryTree.h>
Public Member Functions  
TreeConstruction ()  
Default constructor: only stop at trivial leaves. More...  
TreeConstruction (TreeConstruction const &other)  
Copy constructor. More...  
TreeConstruction (unsigned int maxDepth, unsigned int maxBucketSize)  
Constructor. More...  
TreeConstruction  nextDepthLevel () const 
return a TreeConstruction object with maxDepth reduced by one More...  
unsigned int  maxDepth () const 
return maximum depth of the tree More...  
unsigned int  maxBucketSize () const 
return maximum "size" of a leaf node More...  
Protected Attributes  
unsigned int  m_maxDepth 
maximum depth of the tree More...  
unsigned int  m_maxBucketSize 
maximum "size" of a leaf node More...  
Stopping criteria for tree construction.
Definition at line 65 of file BinaryTree.h.

inline 
Default constructor: only stop at trivial leaves.
Definition at line 69 of file BinaryTree.h.
Referenced by nextDepthLevel().

inline 
Copy constructor.
Definition at line 75 of file BinaryTree.h.

inline 
Constructor.
maxDepth  stop as soon as the given tree depth is reached (zero means unrestricted) 
maxBucketSize  stop as soon as a node holds at most the bucket size of data points (zero means unrestricted) 
Definition at line 84 of file BinaryTree.h.

inline 
return maximum "size" of a leaf node
Definition at line 100 of file BinaryTree.h.
References m_maxBucketSize.
Referenced by shark::LCTree< VectorType, CuttingAccuracy >::buildTree(), shark::KHCTree< Container, CuttingAccuracy >::buildTree(), and shark::KDTree< InputT >::buildTree().

inline 
return maximum depth of the tree
Definition at line 96 of file BinaryTree.h.
References m_maxDepth.
Referenced by shark::LCTree< VectorType, CuttingAccuracy >::buildTree(), shark::KHCTree< Container, CuttingAccuracy >::buildTree(), and shark::KDTree< InputT >::buildTree().

inline 
return a TreeConstruction object with maxDepth reduced by one
Definition at line 91 of file BinaryTree.h.
References m_maxBucketSize, m_maxDepth, and TreeConstruction().

protected 
maximum "size" of a leaf node
Definition at line 108 of file BinaryTree.h.
Referenced by maxBucketSize(), and nextDepthLevel().

protected 
maximum depth of the tree
Definition at line 105 of file BinaryTree.h.
Referenced by maxDepth(), and nextDepthLevel().