CvDTreeNode Class OpenCvSharp Class Library
Decision tree node
Inheritance Hierarchy

SystemObject
  OpenCvSharpCvObject
    OpenCvSharp.CPlusPlusCvDTreeNode

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class CvDTreeNode : CvObject

The CvDTreeNode type exposes the following members.

Constructors

  NameDescription
Public methodCvDTreeNode
Default constructor
Top
Properties

  NameDescription
Public propertyClassIdx
The assigned to the node normalized class index (to 0..class_count-1 range), it is used internally in classification trees and tree ensembles.
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from CvObject.)
Public propertyDepth
The node depth, the root node depth is 0, the child nodes depth is the parent's depth + 1.
Public propertyLeft
Pointers to the left node
Public propertyParent
Pointers to the parent node
Public propertyRight
Pointers to the right node
Public propertySampleCount
The number of samples that fall into the node at the training stage. It is used to resolve the difficult cases - when the variable for the primary split is missing, and all the variables for other surrogate splits are missing too, the sample is directed to the left if left-<sample_count<right-<sample_count and to the right otherwise.
Public propertySplit
Pointer to the first (primary) split.
Public propertyTn
The tree index in a ordered sequence of trees. The indices are used during and after the pruning procedure. The root node has the maximum value Tn of the whole tree, child nodes have Tn less than or equal to the parent's Tn, and the nodes with Tn≤CvDTree::pruned_tree_idx are not taken into consideration at the prediction stage (the corresponding branches are considered as cut-off), even if they have not been physically deleted from the tree at the pruning stage.
Public propertyValue
When true, the inverse split rule is used (i.e. left and right branches are exchanged in the expressions below)
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Fields

  NameDescription
Protected fieldptr
Data pointer
(Inherited from CvObject.)
Top
See Also

Reference