Struct opencv::ml::DTrees_Node
source · [−]pub struct DTrees_Node { /* private fields */ }
Expand description
The class represents a decision tree node.
Implementations
sourceimpl DTrees_Node
impl DTrees_Node
pub fn default() -> Result<DTrees_Node>
Trait Implementations
sourceimpl Boxed for DTrees_Node
impl Boxed for DTrees_Node
sourceimpl DTrees_NodeTrait for DTrees_Node
impl DTrees_NodeTrait for DTrees_Node
fn as_raw_mut_DTrees_Node(&mut self) -> *mut c_void
sourcefn set_value(&mut self, val: f64)
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. Read more
sourcefn set_class_idx(&mut self, val: i32)
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. Read more
sourcefn set_parent(&mut self, val: i32)
fn set_parent(&mut self, val: i32)
Index of the parent node
sourcefn set_default_dir(&mut self, val: i32)
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. Read more
sourceimpl DTrees_NodeTraitConst for DTrees_Node
impl DTrees_NodeTraitConst for DTrees_Node
fn as_raw_DTrees_Node(&self) -> *const c_void
sourcefn value(&self) -> f64
fn value(&self) -> f64
Value at the node: a class label in case of classification or estimated function value in case of regression. Read more
sourcefn class_idx(&self) -> i32
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. Read more
sourcefn 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. Read more
sourceimpl Drop for DTrees_Node
impl Drop for DTrees_Node
impl Send for DTrees_Node
impl VectorElement for DTrees_Node where
Vector<DTrees_Node>: VectorExtern<DTrees_Node>,
Auto Trait Implementations
impl RefUnwindSafe for DTrees_Node
impl !Sync for DTrees_Node
impl Unpin for DTrees_Node
impl UnwindSafe for DTrees_Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more