Trait opencv::hub_prelude::DTrees_NodeTraitConst  [−][src]
pub trait DTrees_NodeTraitConst {
    fn as_raw_DTrees_Node(&self) -> *const c_void;
    fn value(&self) -> f64 { ... }
    fn class_idx(&self) -> i32 { ... }
    fn parent(&self) -> i32 { ... }
    fn left(&self) -> i32 { ... }
    fn right(&self) -> i32 { ... }
    fn default_dir(&self) -> i32 { ... }
    fn split(&self) -> i32 { ... }
}Expand description
The class represents a decision tree node.
Required methods
fn as_raw_DTrees_Node(&self) -> *const c_void
Provided methods
Value at the node: a class label in case of classification or estimated function value in case of regression.
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 default_dir(&self) -> i32
fn default_dir(&self) -> i32
Default direction where to go (-1: left or +1: right). It helps in the case of missing values.