library: libTMVA
#include "Node.h"

TMVA::Node


class description - header file - source file
viewCVS header - viewCVS source

class TMVA::Node

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~Node()
static TClass*Class()
Int_tCountMeAndAllDaughters() const
intGetCount()
UInt_tGetDepth() const
TMVA::Node*GetLeft() const
TMVA::Node*GetParent() const
TMVA::BinaryTree*GetParentTree() const
charGetPos() const
TMVA::Node*GetRight() const
virtual Bool_tGoesLeft(const TMVA::Event&) const
virtual Bool_tGoesRight(const TMVA::Event&) const
virtual TClass*IsA() const
TMVA::Node&operator=(const TMVA::Node&)
virtual voidPrint(ostream& os) const
virtual voidPrintRec(ostream& os) const
virtual voidReadRec(istream& is, char& pos, UInt_t& depth, TMVA::Node* parent = NULL)
voidSetDepth(const UInt_t d)
voidSetLeft(TMVA::Node* l)
voidSetParent(TMVA::Node* p)
voidSetParentTree(TMVA::BinaryTree* t)
voidSetPos(const char s)
voidSetRight(TMVA::Node* r)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
TMVA::Node*fParentthe previous (parent) node
TMVA::Node*fLeftpointers to the two "daughter" nodes
TMVA::Node*fRightpointers to the two "daughter" nodes
charfPosposition, i.e. it is a left (l) or right (r) daughter
UInt_tfDepthdepth of the node within the tree (seen from root node)
TMVA::BinaryTree*fParentTreepointer to the parent tree to which the Node belongs
static intfgCountcounter of all nodes present.. for debug.. to spot memory leaks...

Class Description

                                                                      
 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
Int_t CountMeAndAllDaughters( void )
recursively go through the part of the tree below this node and count all daughters
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
{ return fParent; }
void SetParent(Node* p)
 set pointer to the parent node
{ fParent = p;}
void Print( ostream& os )
 printout of the 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)
{fDepth=d;}
UInt_t GetDepth()
 Return depth, layer of the where the node is within the tree, seen from the top (root)
{return fDepth;}
void SetPos(const char s)
 set node position, i.e, the node is a left (l) or right (r) daugther
{fPos=s;}
char GetPos()
 Return the node position, i.e, the node is a left (l) or right (r) daugther
{return fPos;}
TMVA::BinaryTree* GetParentTree()
 Return the pointer to the Parent tree to which the Node belongs 
{return fParentTree;}
void SetParentTree(TMVA::BinaryTree* t)
 set the pointer to the Parent Tree to which the Node belongs 
{fParentTree = t;}
int GetCount()
{return fgCount;}

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.