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