Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::CCTreeWrapper::CCTreeNode Class Reference

Definition at line 49 of file CCTreeWrapper.h.

Public Member Functions

 CCTreeNode (DecisionTreeNode *n=nullptr)
 constructor of the CCTreeNode
 
virtual ~CCTreeNode ()
 destructor of a CCTreeNode
 
void AddAttributesToNode (void *node) const override
 
void AddContentToNode (std::stringstream &s) const override
 
void * AddXMLTo (void *parent) const
 add attributes to XML
 
Int_t CountMeAndAllDaughters () const
 recursively go through the part of the tree below this node and count all daughters
 
Node * CreateNode () const override
 
Double_t GetAlphaC () const
 
int GetCount ()
 returns the global number of instantiated nodes
 
UInt_t GetDepth () const
 
DecisionTreeNode * GetDTNode () const
 
virtual Node * GetLeft () const
 
CCTreeNode * GetLeftDaughter ()
 
Double_t GetMinAlphaC () const
 
CCTreeNode * GetMother ()
 
Int_t GetNLeafDaughters () const
 
Double_t GetNodeResubstitutionEstimate () const
 
virtual Node * GetParent () const
 
virtual TMVA::BinaryTree * GetParentTree () const
 
char GetPos () const
 
Double_t GetResubstitutionEstimate () const
 
virtual Node * GetRight () const
 
CCTreeNode * GetRightDaughter ()
 
Bool_t GoesLeft (const Event &e) const override
 
Bool_t GoesRight (const Event &e) const override
 
virtual TClass * IsA () const
 
void Print (std::ostream &os) const override
 printout of the node (can be read in with ReadDataRecord)
 
void PrintRec (std::ostream &os) const override
 recursive printout of the node and its daughters
 
void ReadAttributes (void *node, UInt_t tmva_Version_Code=262657) override
 
void ReadContent (std::stringstream &s) override
 
Bool_t ReadDataRecord (std::istream &in, UInt_t tmva_Version_Code=262657) override
 initialize a node from a data record
 
void ReadXML (void *node, UInt_t tmva_Version_Code=262657)
 read attributes from XML
 
void SetAlphaC (Double_t alpha)
 
void SetDepth (UInt_t d)
 
virtual void SetLeft (Node *l)
 
void SetMinAlphaC (Double_t alpha)
 
void SetNLeafDaughters (Int_t N)
 
void SetNodeResubstitutionEstimate (Double_t R)
 
virtual void SetParent (Node *p)
 
virtual void SetParentTree (TMVA::BinaryTree *t)
 
void SetPos (char s)
 
void SetResubstitutionEstimate (Double_t R)
 
virtual void SetRight (Node *r)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Attributes

UInt_t fDepth
 depth of the node within the tree (seen from root node)
 
Node * fLeft
 pointers to the two "daughter" nodes
 
Node * fParent
 the previous (parent) node
 
BinaryTree * fParentTree
 pointer to the parent tree to which the Node belongs
 
char fPos
 position, i.e. it is a left (l) or right (r) daughter
 
Node * fRight
 pointers to the two "daughter" nodes
 

Private Attributes

Double_t fAlphaC
 ! critical point, g(t) = alpha_c(t)
 
DecisionTreeNode * fDTNode
 ! pointer to wrapped node in the decision tree
 
Double_t fMinAlphaC
 ! G(t), minimum critical point of t and its descendants
 
Int_t fNLeafDaughters
 ! number of terminal descendants
 
Double_t fNodeResubstitutionEstimate
 ! R(t) = misclassification rate for node t
 
Double_t fResubstitutionEstimate
 ! R(T_t) = sum[t' in ~T_t]{ R(t) }
 

Static Private Attributes

static Int_t fgCount = 0
 counter of all nodes present.. for debug.. to spot memory leaks...
 

#include <TMVA/CCTreeWrapper.h>

Inheritance diagram for TMVA::CCTreeWrapper::CCTreeNode:
[legend]

Constructor & Destructor Documentation

◆ CCTreeNode()

TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode ( DecisionTreeNode * n = nullptr)

constructor of the CCTreeNode

Definition at line 39 of file CCTreeWrapper.cxx.

◆ ~CCTreeNode()

TMVA::CCTreeWrapper::CCTreeNode::~CCTreeNode ( )
virtual

destructor of a CCTreeNode

Definition at line 59 of file CCTreeWrapper.cxx.

Member Function Documentation

◆ AddAttributesToNode()

void TMVA::CCTreeWrapper::CCTreeNode::AddAttributesToNode ( void * node) const
overridevirtual

Implements TMVA::Node.

Definition at line 252 of file CCTreeWrapper.cxx.

◆ AddContentToNode()

void TMVA::CCTreeWrapper::CCTreeNode::AddContentToNode ( std::stringstream & s) const
overridevirtual

Implements TMVA::Node.

Definition at line 257 of file CCTreeWrapper.cxx.

◆ AddXMLTo()

void * TMVA::Node::AddXMLTo ( void * parent) const
inherited

add attributes to XML

Definition at line 146 of file Node.cxx.

◆ Class()

static TClass * TMVA::Node::Class ( )
staticinherited
Returns
TClass describing this class

◆ Class_Name()

static const char * TMVA::Node::Class_Name ( )
staticinherited
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TMVA::Node::Class_Version ( )
inlinestaticconstexprinherited
Returns
Version of this class

Definition at line 151 of file Node.h.

◆ CountMeAndAllDaughters()

Int_t TMVA::Node::CountMeAndAllDaughters ( ) const
inherited

recursively go through the part of the tree below this node and count all daughters

Definition at line 113 of file Node.cxx.

◆ CreateNode()

Node * TMVA::CCTreeWrapper::CCTreeNode::CreateNode ( ) const
inlineoverridevirtual

Implements TMVA::Node.

Definition at line 56 of file CCTreeWrapper.h.

◆ DeclFileName()

static const char * TMVA::Node::DeclFileName ( )
inlinestaticinherited
Returns
Name of the file containing the class declaration

Definition at line 151 of file Node.h.

◆ GetAlphaC()

Double_t TMVA::CCTreeWrapper::CCTreeNode::GetAlphaC ( ) const
inline

Definition at line 85 of file CCTreeWrapper.h.

◆ GetCount()

int TMVA::Node::GetCount ( )
inherited

returns the global number of instantiated nodes

Definition at line 105 of file Node.cxx.

◆ GetDepth()

UInt_t TMVA::Node::GetDepth ( ) const
inlineinherited

Definition at line 116 of file Node.h.

◆ GetDTNode()

DecisionTreeNode * TMVA::CCTreeWrapper::CCTreeNode::GetDTNode ( ) const
inline

Definition at line 94 of file CCTreeWrapper.h.

◆ GetLeft()

virtual Node * TMVA::Node::GetLeft ( ) const
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 89 of file Node.h.

◆ GetLeftDaughter()

CCTreeNode * TMVA::CCTreeWrapper::CCTreeNode::GetLeftDaughter ( )
inline

Definition at line 97 of file CCTreeWrapper.h.

◆ GetMinAlphaC()

Double_t TMVA::CCTreeWrapper::CCTreeNode::GetMinAlphaC ( ) const
inline

Definition at line 91 of file CCTreeWrapper.h.

◆ GetMother()

CCTreeNode * TMVA::CCTreeWrapper::CCTreeNode::GetMother ( )
inline

Definition at line 99 of file CCTreeWrapper.h.

◆ GetNLeafDaughters()

Int_t TMVA::CCTreeWrapper::CCTreeNode::GetNLeafDaughters ( ) const
inline

Definition at line 62 of file CCTreeWrapper.h.

◆ GetNodeResubstitutionEstimate()

Double_t TMVA::CCTreeWrapper::CCTreeNode::GetNodeResubstitutionEstimate ( ) const
inline

Definition at line 68 of file CCTreeWrapper.h.

◆ GetParent()

virtual Node * TMVA::Node::GetParent ( ) const
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 91 of file Node.h.

◆ GetParentTree()

virtual TMVA::BinaryTree * TMVA::Node::GetParentTree ( ) const
inlinevirtualinherited

Definition at line 125 of file Node.h.

◆ GetPos()

char TMVA::Node::GetPos ( ) const
inlineinherited

Definition at line 122 of file Node.h.

◆ GetResubstitutionEstimate()

Double_t TMVA::CCTreeWrapper::CCTreeNode::GetResubstitutionEstimate ( ) const
inline

Definition at line 75 of file CCTreeWrapper.h.

◆ GetRight()

virtual Node * TMVA::Node::GetRight ( ) const
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 90 of file Node.h.

◆ GetRightDaughter()

CCTreeNode * TMVA::CCTreeWrapper::CCTreeNode::GetRightDaughter ( )
inline

Definition at line 98 of file CCTreeWrapper.h.

◆ GoesLeft()

Bool_t TMVA::CCTreeWrapper::CCTreeNode::GoesLeft ( const Event & e) const
inlineoverridevirtual

Implements TMVA::Node.

Definition at line 116 of file CCTreeWrapper.h.

◆ GoesRight()

Bool_t TMVA::CCTreeWrapper::CCTreeNode::GoesRight ( const Event & e) const
inlineoverridevirtual

Implements TMVA::Node.

Definition at line 112 of file CCTreeWrapper.h.

◆ IsA()

virtual TClass * TMVA::Node::IsA ( ) const
inlinevirtualinherited
Returns
TClass describing current object

Reimplemented in TMVA::BinarySearchTreeNode, and TMVA::DecisionTreeNode.

Definition at line 151 of file Node.h.

◆ Print()

void TMVA::CCTreeWrapper::CCTreeNode::Print ( std::ostream & os) const
overridevirtual

printout of the node (can be read in with ReadDataRecord)

Implements TMVA::Node.

Definition at line 81 of file CCTreeWrapper.cxx.

◆ PrintRec()

void TMVA::CCTreeWrapper::CCTreeNode::PrintRec ( std::ostream & os) const
overridevirtual

recursive printout of the node and its daughters

Implements TMVA::Node.

Definition at line 93 of file CCTreeWrapper.cxx.

◆ ReadAttributes()

void TMVA::CCTreeWrapper::CCTreeNode::ReadAttributes ( void * node,
UInt_t tmva_Version_Code = 262657 )
overridevirtual

Implements TMVA::Node.

Definition at line 262 of file CCTreeWrapper.cxx.

◆ ReadContent()

void TMVA::CCTreeWrapper::CCTreeNode::ReadContent ( std::stringstream & s)
overridevirtual

Implements TMVA::Node.

Definition at line 267 of file CCTreeWrapper.cxx.

◆ ReadDataRecord()

Bool_t TMVA::CCTreeWrapper::CCTreeNode::ReadDataRecord ( std::istream & in,
UInt_t tmva_Version_Code = 262657 )
overridevirtual

initialize a node from a data record

Implements TMVA::Node.

Definition at line 67 of file CCTreeWrapper.cxx.

◆ ReadXML()

void TMVA::Node::ReadXML ( void * node,
UInt_t tmva_Version_Code = 262657 )
inherited

read attributes from XML

Definition at line 162 of file Node.cxx.

◆ SetAlphaC()

void TMVA::CCTreeWrapper::CCTreeNode::SetAlphaC ( Double_t alpha)
inline

Definition at line 82 of file CCTreeWrapper.h.

◆ SetDepth()

void TMVA::Node::SetDepth ( UInt_t d)
inlineinherited

Definition at line 113 of file Node.h.

◆ SetLeft()

virtual void TMVA::Node::SetLeft ( Node * l)
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 94 of file Node.h.

◆ SetMinAlphaC()

void TMVA::CCTreeWrapper::CCTreeNode::SetMinAlphaC ( Double_t alpha)
inline

Definition at line 88 of file CCTreeWrapper.h.

◆ SetNLeafDaughters()

void TMVA::CCTreeWrapper::CCTreeNode::SetNLeafDaughters ( Int_t N)
inline

Definition at line 59 of file CCTreeWrapper.h.

◆ SetNodeResubstitutionEstimate()

void TMVA::CCTreeWrapper::CCTreeNode::SetNodeResubstitutionEstimate ( Double_t R)
inline

Definition at line 65 of file CCTreeWrapper.h.

◆ SetParent()

virtual void TMVA::Node::SetParent ( Node * p)
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 96 of file Node.h.

◆ SetParentTree()

virtual void TMVA::Node::SetParentTree ( TMVA::BinaryTree * t)
inlinevirtualinherited

Definition at line 128 of file Node.h.

◆ SetPos()

void TMVA::Node::SetPos ( char s)
inlineinherited

Definition at line 119 of file Node.h.

◆ SetResubstitutionEstimate()

void TMVA::CCTreeWrapper::CCTreeNode::SetResubstitutionEstimate ( Double_t R)
inline

Definition at line 72 of file CCTreeWrapper.h.

◆ SetRight()

virtual void TMVA::Node::SetRight ( Node * r)
inlinevirtualinherited

Reimplemented in TMVA::DecisionTreeNode.

Definition at line 95 of file Node.h.

◆ Streamer()

virtual void TMVA::Node::Streamer ( TBuffer & )
virtualinherited

◆ StreamerNVirtual()

void TMVA::Node::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inlineinherited

Definition at line 151 of file Node.h.

Member Data Documentation

◆ fAlphaC

Double_t TMVA::CCTreeWrapper::CCTreeNode::fAlphaC
private

! critical point, g(t) = alpha_c(t)

Definition at line 128 of file CCTreeWrapper.h.

◆ fDepth

UInt_t TMVA::Node::fDepth
protectedinherited

depth of the node within the tree (seen from root node)

Definition at line 143 of file Node.h.

◆ fDTNode

DecisionTreeNode* TMVA::CCTreeWrapper::CCTreeNode::fDTNode
private

! pointer to wrapped node in the decision tree

Definition at line 130 of file CCTreeWrapper.h.

◆ fgCount

Int_t TMVA::Node::fgCount = 0
staticprivateinherited

counter of all nodes present.. for debug.. to spot memory leaks...

Definition at line 148 of file Node.h.

◆ fLeft

Node* TMVA::Node::fLeft
protectedinherited

pointers to the two "daughter" nodes

Definition at line 139 of file Node.h.

◆ fMinAlphaC

Double_t TMVA::CCTreeWrapper::CCTreeNode::fMinAlphaC
private

! G(t), minimum critical point of t and its descendants

Definition at line 129 of file CCTreeWrapper.h.

◆ fNLeafDaughters

Int_t TMVA::CCTreeWrapper::CCTreeNode::fNLeafDaughters
private

! number of terminal descendants

Definition at line 125 of file CCTreeWrapper.h.

◆ fNodeResubstitutionEstimate

Double_t TMVA::CCTreeWrapper::CCTreeNode::fNodeResubstitutionEstimate
private

! R(t) = misclassification rate for node t

Definition at line 126 of file CCTreeWrapper.h.

◆ fParent

Node* TMVA::Node::fParent
protectedinherited

the previous (parent) node

Definition at line 138 of file Node.h.

◆ fParentTree

BinaryTree* TMVA::Node::fParentTree
protectedinherited

pointer to the parent tree to which the Node belongs

Definition at line 145 of file Node.h.

◆ fPos

char TMVA::Node::fPos
protectedinherited

position, i.e. it is a left (l) or right (r) daughter

Definition at line 142 of file Node.h.

◆ fResubstitutionEstimate

Double_t TMVA::CCTreeWrapper::CCTreeNode::fResubstitutionEstimate
private

! R(T_t) = sum[t' in ~T_t]{ R(t) }

Definition at line 127 of file CCTreeWrapper.h.

◆ fRight

Node* TMVA::Node::fRight
protectedinherited

pointers to the two "daughter" nodes

Definition at line 140 of file Node.h.

Libraries for TMVA::CCTreeWrapper::CCTreeNode:

The documentation for this class was generated from the following files: