library: libTMVA #include "Node.h" |
TMVA::Node
class description - header file - source file
viewCVS header - viewCVS source
class TMVA::Node
Function Members (Methods)
Display options:
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
Data Members
private:
TMVA::Node* | fParent | the previous (parent) node |
TMVA::Node* | fLeft | pointers to the two "daughter" nodes |
TMVA::Node* | fRight | pointers to the two "daughter" nodes |
char | fPos | position, i.e. it is a left (l) or right (r) daughter |
UInt_t | fDepth | depth of the node within the tree (seen from root node) |
TMVA::BinaryTree* | fParentTree | pointer to the parent tree to which the Node belongs |
static int | fgCount | counter of all nodes present.. for debug.. to spot memory leaks... |
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.
______________________________________________________________________
~Node( void )
node destructor
Bool_t GoesRight( const Event& )
test event if i{ decends the tree at this node to the right
test event if it decends the tree at this node to the left
Node* GetParent()
return pointer to the parent node
void SetParent(Node* p)
set pointer to the parent node
void ReadRec( istream& is, char &pos, UInt_t &depth, Node* parent=NULL )
recursive reading of the node (essectially the whole tree) from a text file
Set depth, layer of the where the node is within the tree, seen from the top (root)
UInt_t GetDepth()
Return depth, layer of the where the node is within the tree, seen from the top (root)
void SetPos(const char s)
set node position, i.e, the node is a left (l) or right (r) daugther
char GetPos()
Return the node position, i.e, the node is a left (l) or right (r) daugther
Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: Node.cxx,v 1.11 2006/11/20 15:35:28 brun Exp $
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.