OpenCV  3.2.0-dev
Open Source Computer Vision
cv::ml::DTrees::Node Class Reference

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

#include "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

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

Member Data Documentation

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.


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