29#ifndef ROOT_TMVA_BinarySearchTreeNode
30#define ROOT_TMVA_BinarySearchTreeNode
96 void Print( std::ostream& os )
const override;
99 void PrintRec( std::ostream& os )
const override;
bool Bool_t
Boolean (0=false, 1=true) (bool)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
short Short_t
Signed Short integer 2 bytes (short)
#define ClassDefOverride(name, id)
#define TMVA_VERSION_CODE
Node for the BinarySearch or Decision Trees.
std::vector< Float_t > fTargets
void PrintRec(std::ostream &os) const override
recursively print the node and its daughters (--> print the 'tree')
std::vector< Float_t > fEventV
virtual ~BinarySearchTreeNode()
node destructor
Bool_t GoesLeft(const Event &) const override
check if the event fed into the node goes/descends to the left daughter
virtual Bool_t EqualsMe(const Event &) const
check if the event fed into the node actually equals the event that forms the node (in case of a sear...
void ReadAttributes(void *node, UInt_t tmva_Version_Code=262657) override
read attributes from XML
BinarySearchTreeNode(const Event *e=nullptr, UInt_t signalClass=0)
constructor of a node for the search tree
Bool_t ReadDataRecord(std::istream &is, UInt_t tmva_Version_Code=262657) override
Read the data block.
Bool_t GoesRight(const Event &) const override
check if the event fed into the node goes/descends to the right daughter
Short_t fSelector
index of variable used in node selection (decision tree)
const std::vector< Float_t > & GetTargets() const
Node * CreateNode() const override
void SetSelector(Short_t i)
set index of variable used for discrimination at this node
void AddContentToNode(std::stringstream &s) const override
adding attributes to tree node
Float_t GetWeight() const
const std::vector< Float_t > & GetEventV() const
void AddAttributesToNode(void *node) const override
adding attributes to tree node
void Print(std::ostream &os) const override
print the node
Short_t GetSelector() const
return index of variable used for discrimination at this node
void ReadContent(std::stringstream &s) override
read events from node
Node for the BinarySearch or Decision Trees.
create variable transformations