#include <Tree.h>
Public Member Functions | |
void | addXMLAttributes (TXMLEngine *xml, Node *node, XMLNodePointer_t np) |
void | buildTree (Int_t nodeLimit) |
void | calcError () |
Node * | filterEvent (Event *e) |
Node * | filterEventRecursive (Node *node, Event *e) |
void | filterEvents (std::vector< Event * > &tEvents) |
void | filterEventsRecursive (Node *node) |
Int_t | getNumTerminalNodes () |
Node * | getRootNode () |
void | getSplitValues (std::vector< std::vector< Double_t >> &v) |
void | getSplitValuesRecursive (Node *node, std::vector< std::vector< Double_t >> &v) |
std::list< Node * > & | getTerminalNodes () |
void | loadFromXML (const char *filename) |
void | loadFromXMLRecursive (TXMLEngine *xml, XMLNodePointer_t node, Node *tnode) |
void | rankVariables (std::vector< Double_t > &v) |
void | rankVariablesRecursive (Node *node, std::vector< Double_t > &v) |
void | saveToXML (const char *filename) |
void | saveToXMLRecursive (TXMLEngine *xml, Node *node, XMLNodePointer_t np) |
void | setRootNode (Node *sRootNode) |
void | setTerminalNodes (std::list< Node * > &sTNodes) |
Tree () | |
Tree (std::vector< std::vector< Event * > > &cEvents) | |
~Tree () | |
Private Attributes | |
Int_t | numTerminalNodes |
Double_t | rmsError |
Node * | rootNode |
std::list< Node * > | terminalNodes |
Tree::Tree | ( | std::vector< std::vector< Event * > > & | cEvents | ) |
void Tree::addXMLAttributes | ( | TXMLEngine * | xml, |
Node * | node, | ||
XMLNodePointer_t | np | ||
) |
void Tree::getSplitValues | ( | std::vector< std::vector< Double_t >> & | v | ) |
void Tree::getSplitValuesRecursive | ( | Node * | node, |
std::vector< std::vector< Double_t >> & | v | ||
) |
void Tree::loadFromXMLRecursive | ( | TXMLEngine * | xml, |
XMLNodePointer_t | node, | ||
Node * | tnode | ||
) |
void Tree::rankVariablesRecursive | ( | Node * | node, |
std::vector< Double_t > & | v | ||
) |
void Tree::saveToXMLRecursive | ( | TXMLEngine * | xml, |
Node * | node, | ||
XMLNodePointer_t | np | ||
) |