OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::ml::DTrees::Node Class Reference

The class represents a decision tree node. More...

#include <opencv2/ml.hpp>

Collaboration diagram for cv::ml::DTrees::Node:

Public Member Functions

 Node ()
 

Public Attributes

int classIdx
 Class index normalized to 0..class_count-1 range and assigned to the node. More...
 
int defaultDir
 Default direction where to go (-1: left or +1: right). More...
 
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
 Value at the node: a class label in case of classification or estimated function value in case of regression. More...
 

Detailed Description

The class represents a decision tree node.

Constructor & Destructor Documentation

◆ Node()

cv::ml::DTrees::Node::Node ( )

Member Data Documentation

◆ classIdx

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.

◆ defaultDir

int cv::ml::DTrees::Node::defaultDir

Default direction where to go (-1: left or +1: right).

It helps in the case of missing values.

◆ left

int cv::ml::DTrees::Node::left

Index of the left child node.

◆ parent

int cv::ml::DTrees::Node::parent

Index of the parent node.

◆ right

int cv::ml::DTrees::Node::right

Index of right child node.

◆ split

int cv::ml::DTrees::Node::split

Index of the first split.

◆ value

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.


The documentation for this class was generated from the following file: