Node class used for representing a decision tree. More...
Public Member Functions | |
| Node (const pandora::TiXmlHandle *const pXmlHandle) | |
| Constructor using xml handle to set member variables. More... | |
| Node (const Node &rhs) | |
| Copy constructor. More... | |
| Node & | operator= (const Node &rhs) |
| Assignment operator. More... | |
| ~Node () | |
| Destructor. More... | |
| int | GetNodeId () const |
| Return node id. More... | |
| int | GetParentNodeId () const |
| Return parent node id. More... | |
| int | GetLeftChildNodeId () const |
| Return left child node id. More... | |
| int | GetRightChildNodeId () const |
| Return right child node id. More... | |
| bool | IsLeaf () const |
| Return is the node a leaf. More... | |
| double | GetThreshold () const |
| Return node threshold. More... | |
| int | GetVariableId () const |
| Return cut variable. More... | |
| bool | GetOutcome () const |
| Return outcome. More... | |
Private Attributes | |
| int | m_nodeId |
| Node id. More... | |
| int | m_parentNodeId |
| Parent node id. More... | |
| int | m_leftChildNodeId |
| Left child node id. More... | |
| int | m_rightChildNodeId |
| Right child node id. More... | |
| bool | m_isLeaf |
| Is node a leaf. More... | |
| double | m_threshold |
| Threshold used for decision if decision node. More... | |
| int | m_variableId |
| Variable cut on for decision if decision node. More... | |
| bool | m_outcome |
| Outcome if leaf node. More... | |
Node class used for representing a decision tree.
Definition at line 95 of file LArAdaBoostDecisionTree.h.
| lar_content::AdaBoostDecisionTree::Node::Node | ( | const pandora::TiXmlHandle *const | pXmlHandle | ) |
Constructor using xml handle to set member variables.
| pXmlHandle | xml handle to use when setting member variables |
| lar_content::AdaBoostDecisionTree::Node::Node | ( | const Node & | rhs | ) |
Copy constructor.
| rhs | the node to copy |
Definition at line 223 of file LArAdaBoostDecisionTree.cc.
| lar_content::AdaBoostDecisionTree::Node::~Node | ( | ) |
|
inline |
Return left child node id.
Definition at line 344 of file LArAdaBoostDecisionTree.h.
|
inline |
Return node id.
Definition at line 330 of file LArAdaBoostDecisionTree.h.
|
inline |
Return outcome.
Definition at line 379 of file LArAdaBoostDecisionTree.h.
|
inline |
Return parent node id.
Definition at line 337 of file LArAdaBoostDecisionTree.h.
|
inline |
Return right child node id.
Definition at line 351 of file LArAdaBoostDecisionTree.h.
|
inline |
Return node threshold.
Definition at line 365 of file LArAdaBoostDecisionTree.h.
|
inline |
Return cut variable.
Definition at line 372 of file LArAdaBoostDecisionTree.h.
|
inline |
Return is the node a leaf.
Definition at line 358 of file LArAdaBoostDecisionTree.h.
| AdaBoostDecisionTree::Node & lar_content::AdaBoostDecisionTree::Node::operator= | ( | const Node & | rhs | ) |
Assignment operator.
| rhs | the node to assign |
Definition at line 237 of file LArAdaBoostDecisionTree.cc.
|
private |
Is node a leaf.
Definition at line 185 of file LArAdaBoostDecisionTree.h.
|
private |
Left child node id.
Definition at line 183 of file LArAdaBoostDecisionTree.h.
|
private |
Node id.
Definition at line 181 of file LArAdaBoostDecisionTree.h.
|
private |
Outcome if leaf node.
Definition at line 188 of file LArAdaBoostDecisionTree.h.
|
private |
Parent node id.
Definition at line 182 of file LArAdaBoostDecisionTree.h.
|
private |
Right child node id.
Definition at line 184 of file LArAdaBoostDecisionTree.h.
|
private |
Threshold used for decision if decision node.
Definition at line 186 of file LArAdaBoostDecisionTree.h.
|
private |
Variable cut on for decision if decision node.
Definition at line 187 of file LArAdaBoostDecisionTree.h.
1.8.11