Node for the BinarySearch or Decision Trees.
For the binary search tree, it basically consists of the EVENT, and pointers to the parent and daughters
In case of the Decision Tree, it specifies parent and daughters, as well as "which variable is used" in the selection of this node, including the respective cut value.
Public Member Functions | |
Node () | |
Node (const Node &n) | |
copy constructor, make sure you don't just copy the pointer to the node, but that the parents/daughters are initialized to 0 (and set by the copy constructors of the derived classes More... | |
Node (Node *p, char pos) | |
constructor of a daughter node as a daughter of 'p' More... | |
virtual | ~Node () |
node destructor More... | |
virtual void | AddAttributesToNode (void *node) const =0 |
virtual void | AddContentToNode (std::stringstream &s) const =0 |
void * | AddXMLTo (void *parent) const |
add attributes to XML More... | |
Int_t | CountMeAndAllDaughters () const |
recursively go through the part of the tree below this node and count all daughters More... | |
virtual Node * | CreateNode () const =0 |
int | GetCount () |
returns the global number of instantiated nodes More... | |
UInt_t | GetDepth () const |
virtual Node * | GetLeft () const |
virtual Node * | GetParent () const |
virtual TMVA::BinaryTree * | GetParentTree () const |
char | GetPos () const |
virtual Node * | GetRight () const |
virtual Bool_t | GoesLeft (const Event &) const =0 |
virtual Bool_t | GoesRight (const Event &) const =0 |
virtual void | Print (std::ostream &os) const =0 |
virtual void | PrintRec (std::ostream &os) const =0 |
virtual void | ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadContent (std::stringstream &s)=0 |
virtual Bool_t | ReadDataRecord (std::istream &, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
void | ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
read attributes from XML More... | |
void | SetDepth (UInt_t d) |
virtual void | SetLeft (Node *l) |
virtual void | SetParent (Node *p) |
virtual void | SetParentTree (TMVA::BinaryTree *t) |
void | SetPos (char s) |
virtual void | SetRight (Node *r) |
Protected Attributes | |
UInt_t | fDepth |
Node * | fLeft |
Node * | fParent |
BinaryTree * | fParentTree |
char | fPos |
Node * | fRight |
Static Private Attributes | |
static Int_t | fgCount = 0 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Node &node) |
std::ostream & | operator<< (std::ostream &os, const Node *node) |
#include <TMVA/Node.h>
TMVA::Node::Node | ( | Node * | p, |
char | pos | ||
) |
TMVA::Node::Node | ( | const Node & | n | ) |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
Int_t TMVA::Node::CountMeAndAllDaughters | ( | ) | const |
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
int TMVA::Node::GetCount | ( | ) |
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
Implemented in TMVA::BinarySearchTreeNode, TMVA::DecisionTreeNode, and TMVA::CCTreeWrapper::CCTreeNode.
Implemented in TMVA::BinarySearchTreeNode, TMVA::DecisionTreeNode, and TMVA::CCTreeWrapper::CCTreeNode.
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
|
pure virtual |
Implemented in TMVA::BinarySearchTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::DecisionTreeNode.
|
pure virtual |
Implemented in TMVA::CCTreeWrapper::CCTreeNode, TMVA::BinarySearchTreeNode, and TMVA::DecisionTreeNode.
void TMVA::Node::ReadXML | ( | void * | node, |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE |
||
) |
Reimplemented in TMVA::DecisionTreeNode.
Reimplemented in TMVA::DecisionTreeNode.
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
|
friend |
|
friend |
|
protected |