library: libTMVA #include "BinarySearchTree.h" |
TMVA::BinarySearchTree
class description - header file - source file
viewCVS header - viewCVS source
class TMVA::BinarySearchTree: public TMVA::BinaryTree
Function Members (Methods)
Display options:
public:
virtual | ~BinarySearchTree() |
TMVA::BinarySearchTree | BinarySearchTree() |
TMVA::BinarySearchTree | BinarySearchTree(const TMVA::BinarySearchTree& b) |
TMVA::BinaryTree | TMVA::BinaryTree::BinaryTree() |
static TClass* | Class() |
UInt_t | TMVA::BinaryTree::CountNodes(TMVA::Node* n = NULL) |
Int_t | Fill(vector<TMVA::Event*> theTree, Int_t theType = -1) |
Int_t | Fill(vector<TMVA::Event*>, vector<Int_t> theVars, Int_t theType = -1) |
Int_t | Fill(const TMVA::DataSet& ds, TTree* theTree, Int_t theType = -1, TMVA::Types::EPreprocessingMethod corr = Types::kNone, TMVA::Types::ESBType type = Types::kSignal) |
TMVA::Node* | TMVA::BinaryTree::GetLeftDaughter(TMVA::Node* n) |
UInt_t | TMVA::BinaryTree::GetNNodes() const |
UInt_t | GetPeriode() const |
TMVA::Node* | TMVA::BinaryTree::GetRightDaughter(TMVA::Node* n) |
TMVA::Node* | TMVA::BinaryTree::GetRoot() const |
Double_t | GetSumOfWeights() const |
void | Insert(TMVA::Event*, Bool_t eventOwnership = kFALSE) |
virtual TClass* | IsA() const |
void | TMVA::BinaryTree::Print(ostream& os) const |
TMVA::BinarySearchTreeNode* | Search(TMVA::Event* event) const |
Double_t | SearchVolume(TMVA::Volume*, vector<TMVA::Event*>* events = 0) |
void | SetPeriode(Int_t p) |
void | TMVA::BinaryTree::SetRoot(TMVA::Node* r) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
Data Members
private:
Double_t | fSumOfWeights | sum of the events (node) weights |
UInt_t | fPeriode | periode (number of event variables) |
UInt_t | fCurrentDepth | internal variable, counting the depth of the tree during insertion |
a simple Binary search tree including volume search method
_______________________________________________________________________
void Insert( TMVA::Event* event, Bool_t eventOwnership )
insert a new "event" in the binary tree
set "eventOwnershipt" to kTRUE if the event should be owned (deleted) by
the tree
void Insert( TMVA::Event *event, TMVA::Node *node, Bool_t eventOwnership )
private internal fuction to insert a event (node) at the proper position
Int_t Fill( const DataSet& ds, TTree* theTree, Int_t theType, Types::EPreprocessingMethod corr, Types::ESBType type )
create the search tree from the events in the DataSet
Int_t Fill( vector<TMVA::Event*> theTree, vector<Int_t> theVars, Int_t theType )
create the search tree from the event collection
using ONLY the variables specified in "theVars"
Double_t SearchVolume( TMVA::Volume* volume, std::vector<TMVA::Event*>* events )
search the whole tree and add up all weigths of events that
lie within the given voluem
void SetPeriode( Int_t p )
set the periode (number of variables)
return periode (number of variables)
Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
Last update: root/tmva $Id: BinarySearchTree.cxx,v 1.10 2006/11/20 15:35:28 brun Exp $
Copyright (c) 2005: *
ROOT page - Class index - Class Hierarchy - Top of the page
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.