ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMVA::CCTreeWrapper::CCTreeNode Class Reference

Definition at line 57 of file CCTreeWrapper.h.

Public Member Functions

 CCTreeNode (DecisionTreeNode *n=NULL)
 constructor of the CCTreeNode More...
 
virtual ~CCTreeNode ()
 destructor of a CCTreeNode More...
 
virtual NodeCreateNode () const
 
void SetNLeafDaughters (Int_t N)
 
Int_t GetNLeafDaughters () const
 
void SetNodeResubstitutionEstimate (Double_t R)
 
Double_t GetNodeResubstitutionEstimate () const
 
void SetResubstitutionEstimate (Double_t R)
 
Double_t GetResubstitutionEstimate () const
 
void SetAlphaC (Double_t alpha)
 
Double_t GetAlphaC () const
 
void SetMinAlphaC (Double_t alpha)
 
Double_t GetMinAlphaC () const
 
DecisionTreeNodeGetDTNode () const
 
CCTreeNodeGetLeftDaughter ()
 
CCTreeNodeGetRightDaughter ()
 
CCTreeNodeGetMother ()
 
virtual void Print (std::ostream &os) const
 printout of the node (can be read in with ReadDataRecord) More...
 
virtual void PrintRec (std::ostream &os) const
 recursive printout of the node and its daughters More...
 
virtual void AddAttributesToNode (void *node) const
 
virtual void AddContentToNode (std::stringstream &s) const
 
virtual Bool_t GoesRight (const Event &e) const
 
virtual Bool_t GoesLeft (const Event &e) const
 
- Public Member Functions inherited from TMVA::Node
 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 NodeGetLeft () const
 
virtual NodeGetRight () const
 
virtual NodeGetParent () 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...
 
voidAddXMLTo (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...
 
void SetDepth (UInt_t d)
 
UInt_t GetDepth () const
 
void SetPos (char s)
 
char GetPos () const
 
virtual TMVA::BinaryTreeGetParentTree () const
 
virtual void SetParentTree (TMVA::BinaryTree *t)
 
int GetCount ()
 retuns the global number of instantiated nodes More...
 

Private Member Functions

virtual void ReadAttributes (void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 
virtual Bool_t ReadDataRecord (std::istream &in, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
 initialize a node from a data record More...
 
virtual void ReadContent (std::stringstream &s)
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from TMVA::Node
NodefParent
 
NodefLeft
 
NodefRight
 
char fPos
 
UInt_t fDepth
 
BinaryTreefParentTree
 

#include <TMVA/CCTreeWrapper.h>

+ Inheritance diagram for TMVA::CCTreeWrapper::CCTreeNode:
+ Collaboration diagram for TMVA::CCTreeWrapper::CCTreeNode:

Constructor & Destructor Documentation

TMVA::CCTreeWrapper::CCTreeNode::CCTreeNode ( DecisionTreeNode n = NULL)

constructor of the CCTreeNode

Definition at line 33 of file CCTreeWrapper.cxx.

Referenced by CreateNode().

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

destructor of a CCTreeNode

Definition at line 53 of file CCTreeWrapper.cxx.

Member Function Documentation

void TMVA::CCTreeWrapper::CCTreeNode::AddAttributesToNode ( void node) const
virtual

Implements TMVA::Node.

Definition at line 246 of file CCTreeWrapper.cxx.

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

Implements TMVA::Node.

Definition at line 251 of file CCTreeWrapper.cxx.

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

Implements TMVA::Node.

Definition at line 64 of file CCTreeWrapper.h.

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

Definition at line 93 of file CCTreeWrapper.h.

Referenced by TMVA::CCTreeWrapper::InitTree(), and TMVA::CCPruner::Optimize().

DecisionTreeNode* TMVA::CCTreeWrapper::CCTreeNode::GetDTNode ( ) const
inline
CCTreeNode* TMVA::CCTreeWrapper::CCTreeNode::GetLeftDaughter ( )
inline
Double_t TMVA::CCTreeWrapper::CCTreeNode::GetMinAlphaC ( ) const
inline

Definition at line 99 of file CCTreeWrapper.h.

Referenced by TMVA::CCTreeWrapper::InitTree(), and TMVA::CCPruner::Optimize().

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

Definition at line 107 of file CCTreeWrapper.h.

Referenced by TMVA::CCPruner::Optimize().

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

Definition at line 70 of file CCTreeWrapper.h.

Referenced by TMVA::CCTreeWrapper::InitTree(), and TMVA::CCPruner::Optimize().

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

Definition at line 83 of file CCTreeWrapper.h.

Referenced by TMVA::CCTreeWrapper::InitTree(), and TMVA::CCPruner::Optimize().

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

Implements TMVA::Node.

Definition at line 124 of file CCTreeWrapper.h.

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

Implements TMVA::Node.

Definition at line 120 of file CCTreeWrapper.h.

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 75 of file CCTreeWrapper.cxx.

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

recursive printout of the node and its daughters

Implements TMVA::Node.

Definition at line 87 of file CCTreeWrapper.cxx.

Referenced by TMVA::CCPruner::Optimize().

void TMVA::CCTreeWrapper::CCTreeNode::ReadAttributes ( void node,
UInt_t  tmva_Version_Code = TMVA_VERSION_CODE 
)
privatevirtual

Implements TMVA::Node.

Definition at line 256 of file CCTreeWrapper.cxx.

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

Implements TMVA::Node.

Definition at line 261 of file CCTreeWrapper.cxx.

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

initialize a node from a data record

Implements TMVA::Node.

Definition at line 61 of file CCTreeWrapper.cxx.

void TMVA::CCTreeWrapper::CCTreeNode::SetAlphaC ( Double_t  alpha)
inline
void TMVA::CCTreeWrapper::CCTreeNode::SetMinAlphaC ( Double_t  alpha)
inline
void TMVA::CCTreeWrapper::CCTreeNode::SetNLeafDaughters ( Int_t  N)
inline
void TMVA::CCTreeWrapper::CCTreeNode::SetNodeResubstitutionEstimate ( Double_t  R)
inline

Definition at line 73 of file CCTreeWrapper.h.

Referenced by TMVA::CCTreeWrapper::InitTree().

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

Member Data Documentation

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

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

Definition at line 137 of file CCTreeWrapper.h.

Referenced by GetAlphaC(), and SetAlphaC().

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

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

Definition at line 139 of file CCTreeWrapper.h.

Referenced by GetDTNode().

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

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

Definition at line 138 of file CCTreeWrapper.h.

Referenced by GetMinAlphaC(), and SetMinAlphaC().

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

Definition at line 134 of file CCTreeWrapper.h.

Referenced by GetNLeafDaughters(), and SetNLeafDaughters().

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

number of terminal descendants

Definition at line 135 of file CCTreeWrapper.h.

Referenced by GetNodeResubstitutionEstimate(), and SetNodeResubstitutionEstimate().

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

R(t) = misclassification rate for node t.

Definition at line 136 of file CCTreeWrapper.h.

Referenced by GetResubstitutionEstimate(), and SetResubstitutionEstimate().


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