Stopping criteria for tree construction. More...
#include <shark/Models/Trees/BinaryTree.h>
| Public Member Functions | |
| TreeConstruction () | |
| Default constructor: only stop at trivial leaves. | |
| TreeConstruction (TreeConstruction const &other) | |
| Copy constructor. | |
| TreeConstruction (unsigned int maxDepth, unsigned int maxBucketSize) | |
| Constructor. | |
| TreeConstruction | nextDepthLevel () const | 
| return a TreeConstruction object with maxDepth reduced by one | |
| unsigned int | maxDepth () const | 
| return maximum depth of the tree | |
| unsigned int | maxBucketSize () const | 
| return maximum "size" of a leaf node | |
| Protected Attributes | |
| unsigned int | m_maxDepth | 
| maximum depth of the tree | |
| unsigned int | m_maxBucketSize | 
| maximum "size" of a leaf node | |
Stopping criteria for tree construction.
Definition at line 73 of file BinaryTree.h.
| 
 | inline | 
Default constructor: only stop at trivial leaves.
Definition at line 77 of file BinaryTree.h.
Referenced by nextDepthLevel().
| 
 | inline | 
Copy constructor.
Definition at line 83 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 92 of file BinaryTree.h.
| 
 | inline | 
return maximum "size" of a leaf node
Definition at line 108 of file BinaryTree.h.
References m_maxBucketSize.
Referenced by shark::KDTree< InputT >::buildTree(), shark::KHCTree< Container, CuttingAccuracy >::buildTree(), and shark::LCTree< VectorType, CuttingAccuracy >::buildTree().
| 
 | inline | 
return maximum depth of the tree
Definition at line 104 of file BinaryTree.h.
References m_maxDepth.
Referenced by shark::KDTree< InputT >::buildTree(), shark::KHCTree< Container, CuttingAccuracy >::buildTree(), and shark::LCTree< VectorType, CuttingAccuracy >::buildTree().
| 
 | inline | 
return a TreeConstruction object with maxDepth reduced by one
Definition at line 99 of file BinaryTree.h.
References m_maxBucketSize, m_maxDepth, and TreeConstruction().
Referenced by shark::KDTree< InputT >::buildTree(), shark::KHCTree< Container, CuttingAccuracy >::buildTree(), and shark::LCTree< VectorType, CuttingAccuracy >::buildTree().
| 
 | protected | 
maximum "size" of a leaf node
Definition at line 116 of file BinaryTree.h.
Referenced by maxBucketSize(), and nextDepthLevel().
| 
 | protected | 
maximum depth of the tree
Definition at line 113 of file BinaryTree.h.
Referenced by maxDepth(), and nextDepthLevel().