[−][src]Trait opencv::ml::prelude::DTrees_NodeTrait
The class represents a decision tree node.
Required methods
pub fn as_raw_DTrees_Node(&self) -> *const c_void
[src]
pub fn as_raw_mut_DTrees_Node(&mut self) -> *mut c_void
[src]
Provided methods
pub fn value(&self) -> f64
[src]
Value at the node: a class label in case of classification or estimated function value in case of regression.
pub fn set_value(&mut self, val: f64)
[src]
Value at the node: a class label in case of classification or estimated function value in case of regression.
pub fn class_idx(&self) -> i32
[src]
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
pub fn set_class_idx(&mut self, val: i32)
[src]
Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.
pub fn parent(&self) -> i32
[src]
Index of the parent node
pub fn set_parent(&mut self, val: i32)
[src]
Index of the parent node
pub fn left(&self) -> i32
[src]
Index of the left child node
pub fn set_left(&mut self, val: i32)
[src]
Index of the left child node
pub fn right(&self) -> i32
[src]
Index of right child node
pub fn set_right(&mut self, val: i32)
[src]
Index of right child node
pub fn default_dir(&self) -> i32
[src]
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
pub fn set_default_dir(&mut self, val: i32)
[src]
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.
pub fn split(&self) -> i32
[src]
Index of the first split
pub fn set_split(&mut self, val: i32)
[src]
Index of the first split