class TMVA::BinarySearchTreeNode: public TMVA::Node


BinarySearchTreeNode

Node for the BinarySearch or Decision Trees. For the binary search
tree, it basically consists of the EVENT, and pointers to the
parent and the 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(const 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
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
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:
virtual 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(const 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 SetSelector(Short_t i)
 set 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 change: root/tmva $Id: BinarySearchTreeNode.h 23334 2008-04-19 18:38:57Z brun $
Last generated: 2008-06-25 08:48
Copyright (c) 2005: *

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.