ROOT
6.07/01
Reference Guide
|
Public Member Functions | |
Node () | |
Node (Node *p, char pos) | |
constructor of a daughter node as a daughter of 'p' More... | |
Node (const Node &n) | |
copy constructor, make sure you don't just copy the poiter to the node, but that the parents/daugthers are initialized to 0 (and set by the copy constructors of the derived classes More... | |
virtual | ~Node () |
node destructor More... | |
virtual Node * | CreateNode () const =0 |
virtual Bool_t | GoesRight (const Event &) const =0 |
virtual Bool_t | GoesLeft (const Event &) const =0 |
virtual Node * | GetLeft () const |
virtual Node * | GetRight () const |
virtual Node * | GetParent () const |
virtual void | SetLeft (Node *l) |
virtual void | SetRight (Node *r) |
virtual void | SetParent (Node *p) |
Int_t | CountMeAndAllDaughters () const |
recursively go through the part of the tree below this node and count all daughters More... | |
virtual void | Print (std::ostream &os) const =0 |
virtual void | PrintRec (std::ostream &os) const =0 |
void * | AddXMLTo (void *parent) const |
add attributes to XML More... | |
void | ReadXML (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE) |
read attributes from XML More... | |
virtual void | AddAttributesToNode (void *node) const =0 |
virtual void | AddContentToNode (std::stringstream &s) const =0 |
void | SetDepth (UInt_t d) |
UInt_t | GetDepth () const |
void | SetPos (char s) |
char | GetPos () const |
virtual TMVA::BinaryTree * | GetParentTree () const |
virtual void | SetParentTree (TMVA::BinaryTree *t) |
int | GetCount () |
retuns the global number of instantiated nodes More... | |
virtual Bool_t | ReadDataRecord (std::istream &, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)=0 |
virtual void | ReadContent (std::stringstream &s)=0 |
Protected Attributes | |
Node * | fParent |
Node * | fLeft |
Node * | fRight |
char | fPos |
UInt_t | fDepth |
BinaryTree * | fParentTree |
Static Private Attributes | |
static Int_t | fgCount |
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 | ( | ) |
TMVA::Node::Node | ( | Node * | p, |
char | pos | ||
) |
TMVA::Node::Node | ( | const Node & | n | ) |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
Int_t TMVA::Node::CountMeAndAllDaughters | ( | ) | const |
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::BinarySearchTreeNode, and TMVA::CCTreeWrapper::CCTreeNode.
int TMVA::Node::GetCount | ( | ) |
|
inline |
Definition at line 118 of file Node.h.
Referenced by TMVA::DecisionTree::BuildTree(), TMVA::BinarySearchTree::Insert(), TMVA::BinaryTree::Read(), TMVA::DecisionTree::SetParentTreeInNodes(), and TMVA::BinaryTree::SetTotalTreeDepth().
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 91 of file Node.h.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::BinarySearchTree::CalcStatistics(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::CCTreeWrapper::CheckEvent(), TMVA::BinarySearchTree::Clear(), TMVA::BinaryTree::DeleteNode(), TMVA::RuleEnsemble::FindNEndNodes(), TMVA::BinaryTree::GetLeftDaughter(), TMVA::CCTreeWrapper::CCTreeNode::GetLeftDaughter(), TMVA::CCTreeWrapper::InitTree(), TMVA::BinarySearchTree::Insert(), TMVA::CCTreeWrapper::PruneNode(), TMVA::BinarySearchTree::Search(), and TMVA::BinarySearchTree::SearchVolume().
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 93 of file Node.h.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::CCTreeWrapper::CCTreeNode::GetMother(), TMVA::RuleEnsemble::MakeTheRule(), and TMVA::BinaryTree::Read().
|
inlinevirtual |
|
inline |
Definition at line 124 of file Node.h.
Referenced by TMVA::BinaryTree::Read(), and ReadXML().
|
inlinevirtual |
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 92 of file Node.h.
Referenced by TMVA::RuleEnsemble::AddRule(), TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::BinarySearchTree::CalcStatistics(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::CCTreeWrapper::CheckEvent(), TMVA::BinarySearchTree::Clear(), TMVA::BinaryTree::DeleteNode(), TMVA::RuleEnsemble::FindNEndNodes(), TMVA::BinaryTree::GetRightDaughter(), TMVA::CCTreeWrapper::CCTreeNode::GetRightDaughter(), TMVA::CCTreeWrapper::InitTree(), TMVA::BinarySearchTree::Insert(), TMVA::CCTreeWrapper::PruneNode(), TMVA::BinarySearchTree::Search(), and TMVA::BinarySearchTree::SearchVolume().
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
Referenced by TMVA::BinarySearchTree::Insert(), and TMVA::BinarySearchTree::Search().
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
Referenced by TMVA::BinarySearchTree::Insert().
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
Referenced by TMVA::operator<<().
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
|
pure virtual |
Implemented in TMVA::DecisionTreeNode, TMVA::CCTreeWrapper::CCTreeNode, and TMVA::BinarySearchTreeNode.
Referenced by TMVA::BinaryTree::Read().
void TMVA::Node::ReadXML | ( | void * | node, |
UInt_t | tmva_Version_Code = TMVA_VERSION_CODE |
||
) |
Definition at line 115 of file Node.h.
Referenced by TMVA::BinarySearchTree::Insert().
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 96 of file Node.h.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), Node(), TMVA::CCTreeWrapper::PruneNode(), and TMVA::BinaryTree::Read().
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 98 of file Node.h.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), and TMVA::BinaryTree::Read().
|
inlinevirtual |
Definition at line 130 of file Node.h.
Referenced by TMVA::DecisionTree::SetParentTreeInNodes().
|
inline |
Definition at line 121 of file Node.h.
Referenced by TMVA::BinarySearchTree::Insert().
Reimplemented in TMVA::DecisionTreeNode.
Definition at line 97 of file Node.h.
Referenced by TMVA::BinarySearchTreeNode::BinarySearchTreeNode(), TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode(), TMVA::BinarySearchTree::Insert(), Node(), TMVA::CCTreeWrapper::PruneNode(), and TMVA::BinaryTree::Read().
|
friend |
|
friend |
|
protected |
Definition at line 145 of file Node.h.
Referenced by GetDepth(), and SetDepth().
|
staticprivate |
|
protected |
Definition at line 141 of file Node.h.
Referenced by GetLeft(), TMVA::DecisionTreeNode::GetLeft(), SetLeft(), and TMVA::DecisionTreeNode::SetLeft().
|
protected |
Definition at line 140 of file Node.h.
Referenced by GetParent(), TMVA::DecisionTreeNode::GetParent(), SetParent(), and TMVA::DecisionTreeNode::SetParent().
|
protected |
Definition at line 147 of file Node.h.
Referenced by GetParentTree(), and SetParentTree().
|
protected |
|
protected |
Definition at line 142 of file Node.h.
Referenced by GetRight(), TMVA::DecisionTreeNode::GetRight(), SetRight(), and TMVA::DecisionTreeNode::SetRight().