a decision tree node.
More...
#include <dtnode.h>
◆ Node()
◆ extra()
std::shared_ptr< NodeExtra > Node::extra |
( |
| ) |
const |
◆ getChild()
std::shared_ptr< Node > Node::getChild |
( |
int |
idx | ) |
|
Returns the children pointer indexed by the argument If the children has been remapped using setMapping(), it returns the remapped pointer.
◆ getChildrenCount()
int Node::getChildrenCount |
( |
| ) |
const |
◆ getMapping()
int Node::getMapping |
( |
int |
idx | ) |
const |
◆ getUnmappedChild()
std::shared_ptr< Node > Node::getUnmappedChild |
( |
int |
idx | ) |
|
Returns the children pointer indexed by the argument, ignoring any mapping.
◆ parent()
std::weak_ptr<Node> dtree::Node::parent |
( |
| ) |
const |
|
inline |
◆ setChild()
void Node::setChild |
( |
int |
idx, |
|
|
std::shared_ptr< Node > |
child |
|
) |
| |
◆ setExtra()
void Node::setExtra |
( |
std::shared_ptr< NodeExtra > |
extra | ) |
|
◆ setMapping()
void Node::setMapping |
( |
int |
idx, |
|
|
int |
remapped |
|
) |
| |
◆ setParent()
void dtree::Node::setParent |
( |
std::weak_ptr< Node > |
node | ) |
|
|
inline |
◆ setValue()
void dtree::Node::setValue |
( |
double |
v | ) |
|
|
inline |
◆ setVariable()
◆ value()
double dtree::Node::value |
( |
| ) |
const |
|
inline |
◆ variable()
Variable dtree::Node::variable |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- C:/Users/fbas/Documents/GitHub/DISPLACE_GUI/commons/dtree/dtnode.h
- C:/Users/fbas/Documents/GitHub/DISPLACE_GUI/commons/dtree/dtnode.cpp