+
class TMVA::BinarySearchTreeNode
-
library: libTMVA
#include "BinarySearchTreeNode.h"
Display options:
Show inherited
Show non-public

class TMVA::BinarySearchTreeNode: public TMVA::Node


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.

Function Members (Methods)

public:
virtual~BinarySearchTreeNode()
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(TMVA::Event* e = NULL)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(TMVA::BinarySearchTreeNode* parent, char pos)
TMVA::BinarySearchTreeNodeBinarySearchTreeNode(const TMVA::BinarySearchTreeNode& n, TMVA::BinarySearchTreeNode* parent = NULL)
static TClass*Class()
Int_tTMVA::Node::CountMeAndAllDaughters() const
virtual Bool_tEqualsMe(const TMVA::Event&) const
intTMVA::Node::GetCount()
UInt_tTMVA::Node::GetDepth() const
const vector<Float_t>&GetEventV() const
TMVA::Node*TMVA::Node::GetLeft() const
virtual Int_tGetMemSize() const
TMVA::Node*TMVA::Node::GetParent() const
TMVA::BinaryTree*TMVA::Node::GetParentTree() const
charTMVA::Node::GetPos() const
TMVA::Node*TMVA::Node::GetRight() const
Short_tGetSelector() const
Float_tGetWeight() const
virtual Bool_tGoesLeft(const TMVA::Event&) const
virtual Bool_tGoesRight(const TMVA::Event&) const
virtual TClass*IsA() const
Bool_tIsSignal() const
TMVA::BinarySearchTreeNode&operator=(const TMVA::BinarySearchTreeNode&)
virtual voidPrint(ostream& os) const
virtual voidPrintRec(ostream& os) const
virtual voidReadRec(istream& is, char& pos, UInt_t& depth, TMVA::Node* parent = NULL)
voidTMVA::Node::SetDepth(UInt_t d)
voidTMVA::Node::SetLeft(TMVA::Node* l)
voidTMVA::Node::SetParent(TMVA::Node* p)
voidTMVA::Node::SetParentTree(TMVA::BinaryTree* t)
voidTMVA::Node::SetPos(char s)
voidTMVA::Node::SetRight(TMVA::Node* r)
voidSetSelector(Short_t i)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
Bool_tReadDataRecord(istream& is)

Data Members

private:
vector<Float_t>fEventV
Bool_tfIsSignal
Short_tfSelectorindex of variable used in node selection (decision tree)
Float_tfWeight

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

BinarySearchTreeNode(TMVA::Event* e = NULL)
 constructor of a node for the search tree
BinarySearchTreeNode( BinarySearchTreeNode* parent, char pos )
 constructor of a daughter node as a daughter of 'p'
BinarySearchTreeNode( const BinarySearchTreeNode &n, BinarySearchTreeNode* parent )
 copy constructor of a node. It will result in an explicit copy of
 the node an drecursively all it's daughters
~BinarySearchTreeNode()
 node destructor
Bool_t GoesRight(const TMVA::Event& ) const
 check if the event fed into the node goes/decends to the right daughter
Bool_t GoesLeft(const TMVA::Event& ) const
 check if the event fed into the node goes/decends to the left daughter
Bool_t EqualsMe(const TMVA::Event& ) const
 check if the event fed into the node actually equals the event
 that forms the node (in case of a search tree)
void Print(ostream& os) const
 print the node
void PrintRec(ostream& os) const
 recursively print the node and its daughters (--> print the 'tree')
Bool_t ReadDataRecord(istream& is)
 Read the data block
void ReadRec(istream& is, char& pos, UInt_t& depth, TMVA::Node* parent = NULL)
 recursively read the node and its daughters (--> print the 'tree')
Int_t GetMemSize()
 Calculate the size of the node in memory
void SetSelector(Short_t i)
 set index of variable used for discrimination at this node
 return index of variable used for discrimination at this node
{ fSelector = i; }
Short_t GetSelector()
{ return fSelector; }
const std::vector<Float_t> & GetEventV()
{ return fEventV; }
Float_t GetWeight()
{ return fWeight; }
Bool_t IsSignal()
{ return fIsSignal; }

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: BinarySearchTreeNode.cxx,v 1.7 2007/06/19 13:26:21 brun Exp $

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.