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
 
virtual void AddAttributesToNode (void *node) const
 
virtual void AddContentToNode (std::stringstream &s) const
 
virtual NodeCreateNode () const
 
Double_t GetAlphaC () const
 
DecisionTreeNodeGetDTNode () const
 
CCTreeNodeGetLeftDaughter ()
 
Double_t GetMinAlphaC () const
 
CCTreeNodeGetMother ()
 
Int_t GetNLeafDaughters () const
 
Double_t GetNodeResubstitutionEstimate () const
 
Double_t GetResubstitutionEstimate () const
 
CCTreeNodeGetRightDaughter ()
 
virtual Bool_t GoesLeft (const Event &e) const
 
virtual Bool_t GoesRight (const Event &e) const
 
virtual void Print (std::ostream &os) const
 printout of the node (can be read in with ReadDataRecord)
 
virtual void PrintRec (std::ostream &os) const
 recursive printout of the node and its daughters
 
virtual void ReadAttributes (void *node, UInt_t tmva_Version_Code=262657)
 
virtual void ReadContent (std::stringstream &s)
 
virtual Bool_t ReadDataRecord (std::istream &in, UInt_t tmva_Version_Code=262657)
 initialize a node from a data record
 
void SetAlphaC (Double_t alpha)
 
void SetMinAlphaC (Double_t alpha)
 
void SetNLeafDaughters (Int_t N)
 
void SetNodeResubstitutionEstimate (Double_t R)
 
void SetResubstitutionEstimate (Double_t R)
 
- Public Member Functions inherited from TMVA::Node
 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
 
 Node (Node *p, char pos)
 constructor of a daughter node as a daughter of 'p'
 
virtual ~Node ()
 node destructor
 
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
 
int GetCount ()
 returns the global number of instantiated nodes
 
UInt_t GetDepth () const
 
virtual NodeGetLeft () const
 
virtual NodeGetParent () const
 
virtual TMVA::BinaryTreeGetParentTree () const
 
char GetPos () const
 
virtual NodeGetRight () const
 
virtual TClassIsA () const
 
void ReadXML (void *node, UInt_t tmva_Version_Code=262657)
 read attributes from XML
 
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)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Private Attributes

Double_t fAlphaC
 R(T_t) = sum[t' in ~T_t]{ R(t) }.
 
DecisionTreeNodefDTNode
 G(t), minimum critical point of t and its descendants.
 
Double_t fMinAlphaC
 critical point, g(t) = alpha_c(t)
 
Int_t fNLeafDaughters
 
Double_t fNodeResubstitutionEstimate
 number of terminal descendants
 
Double_t fResubstitutionEstimate
 R(t) = misclassification rate for node t.
 

Additional Inherited Members

- Static Public Member Functions inherited from TMVA::Node
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Protected Attributes inherited from TMVA::Node
UInt_t fDepth
 depth of the node within the tree (seen from root node)
 
NodefLeft
 pointers to the two "daughter" nodes
 
NodefParent
 the previous (parent) node
 
BinaryTreefParentTree
 pointer to the parent tree to which the Node belongs
 
char fPos
 position, i.e. it is a left (l) or right (r) daughter
 
NodefRight
 pointers to the two "daughter" nodes
 

#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
virtual

Implements TMVA::Node.

Definition at line 252 of file CCTreeWrapper.cxx.

◆ AddContentToNode()

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

Implements TMVA::Node.

Definition at line 257 of file CCTreeWrapper.cxx.

◆ CreateNode()

virtual Node * TMVA::CCTreeWrapper::CCTreeNode::CreateNode ( ) const
inlinevirtual

Implements TMVA::Node.

Definition at line 56 of file CCTreeWrapper.h.

◆ GetAlphaC()

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

Definition at line 85 of file CCTreeWrapper.h.

◆ GetDTNode()

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

Definition at line 94 of file CCTreeWrapper.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.

◆ GetResubstitutionEstimate()

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

Definition at line 75 of file CCTreeWrapper.h.

◆ GetRightDaughter()

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

Definition at line 98 of file CCTreeWrapper.h.

◆ GoesLeft()

virtual Bool_t TMVA::CCTreeWrapper::CCTreeNode::GoesLeft ( const Event e) const
inlinevirtual

Implements TMVA::Node.

Definition at line 116 of file CCTreeWrapper.h.

◆ GoesRight()

virtual Bool_t TMVA::CCTreeWrapper::CCTreeNode::GoesRight ( const Event e) const
inlinevirtual

Implements TMVA::Node.

Definition at line 112 of file CCTreeWrapper.h.

◆ Print()

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

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
virtual

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 
)
virtual

Implements TMVA::Node.

Definition at line 262 of file CCTreeWrapper.cxx.

◆ ReadContent()

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

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 
)
virtual

initialize a node from a data record

Implements TMVA::Node.

Definition at line 67 of file CCTreeWrapper.cxx.

◆ SetAlphaC()

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

Definition at line 82 of file CCTreeWrapper.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.

◆ SetResubstitutionEstimate()

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

Definition at line 72 of file CCTreeWrapper.h.

Member Data Documentation

◆ fAlphaC

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

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

Definition at line 128 of file CCTreeWrapper.h.

◆ fDTNode

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

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

Definition at line 130 of file CCTreeWrapper.h.

◆ fMinAlphaC

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

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

Definition at line 129 of file CCTreeWrapper.h.

◆ fNLeafDaughters

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

Definition at line 125 of file CCTreeWrapper.h.

◆ fNodeResubstitutionEstimate

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

number of terminal descendants

Definition at line 126 of file CCTreeWrapper.h.

◆ fResubstitutionEstimate

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

R(t) = misclassification rate for node t.

Definition at line 127 of file CCTreeWrapper.h.

Libraries for TMVA::CCTreeWrapper::CCTreeNode:

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