Base class for BinarySearch and Decision Trees.
Definition at line 62 of file BinaryTree.h.
|
| UInt_t | fDepth |
| | maximal depth in tree reached
|
| UInt_t | fNNodes |
| | total number of nodes in the tree (counted)
|
| Node * | fRoot |
| | the root node of the tree the tree only has it's root node, the "daughters" are taken care of by the "node" properties of the "root"
|
#include <TMVA/BinaryTree.h>
◆ BinaryTree()
| TMVA::BinaryTree::BinaryTree |
( |
void | | ) |
|
constructor for a yet "empty" tree. Needs to be filled afterwards
Definition at line 54 of file BinaryTree.cxx.
◆ ~BinaryTree()
| TMVA::BinaryTree::~BinaryTree |
( |
void | | ) |
|
|
virtual |
destructor (deletes the nodes and "events" if owned by the tree
Definition at line 64 of file BinaryTree.cxx.
◆ AddXMLTo()
| void * TMVA::BinaryTree::AddXMLTo |
( |
void * | parent | ) |
const |
|
virtual |
◆ Class()
| TClass * TMVA::BinaryTree::Class |
( |
| ) |
|
|
static |
- Returns
- TClass describing this class
◆ Class_Name()
| const char * TMVA::BinaryTree::Class_Name |
( |
| ) |
|
|
static |
- Returns
- Name of this class
◆ Class_Version()
| constexpr Version_t TMVA::BinaryTree::Class_Version |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ ClassName()
| virtual const char * TMVA::BinaryTree::ClassName |
( |
| ) |
const |
|
pure virtual |
◆ CountNodes()
return the number of nodes in the tree. (make a new count --> takes time)
Definition at line 102 of file BinaryTree.cxx.
◆ CreateNode()
| virtual Node * TMVA::BinaryTree::CreateNode |
( |
UInt_t | size = 0 | ) |
const |
|
pure virtual |
◆ CreateTree()
| virtual BinaryTree * TMVA::BinaryTree::CreateTree |
( |
| ) |
const |
|
pure virtual |
◆ DeclFileName()
| const char * TMVA::BinaryTree::DeclFileName |
( |
| ) |
|
|
inlinestatic |
- Returns
- Name of the file containing the class declaration
Definition at line 122 of file BinaryTree.h.
◆ DeleteNode()
| void TMVA::BinaryTree::DeleteNode |
( |
TMVA::Node * | node | ) |
|
|
protected |
protected, recursive, function used by the class destructor and when Pruning
Definition at line 73 of file BinaryTree.cxx.
◆ GetLeftDaughter()
get left daughter node current node "n"
Definition at line 86 of file BinaryTree.cxx.
◆ GetNNodes()
| UInt_t TMVA::BinaryTree::GetNNodes |
( |
| ) |
const |
|
inline |
◆ GetRightDaughter()
get right daughter node current node "n"
Definition at line 94 of file BinaryTree.cxx.
◆ GetRoot()
| virtual Node * TMVA::BinaryTree::GetRoot |
( |
| ) |
const |
|
inlinevirtual |
◆ GetTotalTreeDepth()
| UInt_t TMVA::BinaryTree::GetTotalTreeDepth |
( |
| ) |
const |
|
inline |
◆ IsA()
| virtual TClass * TMVA::BinaryTree::IsA |
( |
| ) |
const |
|
inlinevirtual |
◆ Log()
◆ Print()
| void TMVA::BinaryTree::Print |
( |
std::ostream & | os | ) |
const |
|
virtual |
◆ Read()
| void TMVA::BinaryTree::Read |
( |
std::istream & | istr, |
|
|
UInt_t | tmva_Version_Code = 262657 ) |
|
virtual |
Read the binary tree from an input stream.
The input stream format depends on the tree type, it is defined be the node of the tree
Definition at line 168 of file BinaryTree.cxx.
◆ ReadXML()
| void TMVA::BinaryTree::ReadXML |
( |
void * | node, |
|
|
UInt_t | tmva_Version_Code = 262657 ) |
|
virtual |
◆ SetRoot()
| void TMVA::BinaryTree::SetRoot |
( |
Node * | r | ) |
|
|
inline |
◆ SetTotalTreeDepth() [1/2]
| void TMVA::BinaryTree::SetTotalTreeDepth |
( |
Int_t | depth | ) |
|
|
inline |
◆ SetTotalTreeDepth() [2/2]
| void TMVA::BinaryTree::SetTotalTreeDepth |
( |
Node * | n = nullptr | ) |
|
descend a tree to find all its leaf nodes, fill max depth reached in the tree at the same time.
Definition at line 212 of file BinaryTree.cxx.
◆ Streamer()
| virtual void TMVA::BinaryTree::Streamer |
( |
TBuffer & | | ) |
|
|
virtual |
◆ StreamerNVirtual()
| void TMVA::BinaryTree::StreamerNVirtual |
( |
TBuffer & | ClassDef_StreamerNVirtual_b | ) |
|
|
inline |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const BinaryTree & | tree ) |
|
friend |
◆ operator>>
| std::istream & operator>> |
( |
std::istream & | istr, |
|
|
BinaryTree & | tree ) |
|
friend |
◆ fDepth
| UInt_t TMVA::BinaryTree::fDepth |
|
protected |
◆ fNNodes
| UInt_t TMVA::BinaryTree::fNNodes |
|
protected |
total number of nodes in the tree (counted)
Definition at line 117 of file BinaryTree.h.
◆ fRoot
| Node* TMVA::BinaryTree::fRoot |
|
protected |
the root node of the tree the tree only has it's root node, the "daughters" are taken care of by the "node" properties of the "root"
Definition at line 110 of file BinaryTree.h.
The documentation for this class was generated from the following files: