BinaryTree Base class for BinarySearch and Decision Trees
virtual | ~BinaryTree() |
virtual void* | AddXMLTo(void* parent) const |
TMVA::BinaryTree | BinaryTree() |
TMVA::BinaryTree | BinaryTree(const TMVA::BinaryTree&) |
static TClass* | Class() |
virtual const char* | ClassName() const |
UInt_t | CountNodes(TMVA::Node* n = __null) |
virtual TMVA::Node* | CreateNode(UInt_t size = 0) const |
virtual TMVA::BinaryTree* | CreateTree() const |
TMVA::Node* | GetLeftDaughter(TMVA::Node* n) |
UInt_t | GetNNodes() const |
TMVA::Node* | GetRightDaughter(TMVA::Node* n) |
virtual TMVA::Node* | GetRoot() const |
UInt_t | GetTotalTreeDepth() const |
virtual TClass* | IsA() const |
TMVA::BinaryTree& | operator=(const TMVA::BinaryTree&) |
virtual void | Print(ostream& os) const |
virtual void | Read(istream& istr, UInt_t tmva_Version_Code = 262657) |
virtual void | ReadXML(void* node, UInt_t tmva_Version_Code = 262657) |
void | SetRoot(TMVA::Node* r) |
void | SetTotalTreeDepth(Int_t depth) |
void | SetTotalTreeDepth(TMVA::Node* n = __null) |
virtual void | ShowMembers(TMemberInspector& insp) const |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
void | DeleteNode(TMVA::Node*) |
TMVA::MsgLogger& | Log() const |
Inheritance Chart: | ||||||||||||
|
or a tree with Root node "n", any daughters of this node are automatically in the tree
virtual BinaryTree* CreateFromXML(void* node, UInt_t tmva_Version_Code = TMVA_VERSION_CODE) = 0;
get number of Nodes in the Tree as counted while booking the nodes;
{ return fNNodes; }
count the number of Nodes in the Tree by looping through the tree and updates the stored number. (e.g. useful when pruning, as the number count is updated when building the tree.
the tree only has it's root node, the "daughters" are taken car of by the "node" properties of the "root" delete a node (and the corresponding event if owned by the tree)