OpenCV
3.4.19
Open Source Computer Vision
|
The class represents a decision tree node. More...
#include <opencv2/ml.hpp>
Public Member Functions | |
Node () | |
Public Attributes | |
int | classIdx |
int | defaultDir |
int | left |
Index of the left child node. More... | |
int | parent |
Index of the parent node. More... | |
int | right |
Index of right child node. More... | |
int | split |
Index of the first split. More... | |
double | value |
The class represents a decision tree node.
cv::ml::DTrees::Node::Node | ( | ) |
int cv::ml::DTrees::Node::classIdx |
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
int cv::ml::DTrees::Node::defaultDir |
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
int cv::ml::DTrees::Node::left |
Index of the left child node.
int cv::ml::DTrees::Node::parent |
Index of the parent node.
int cv::ml::DTrees::Node::right |
Index of right child node.
int cv::ml::DTrees::Node::split |
Index of the first split.
double cv::ml::DTrees::Node::value |
Value at the node: a class label in case of classification or estimated function value in case of regression.