Struct opencv::ml::DTrees_Node
source · pub struct DTrees_Node { /* private fields */ }
Expand description
The class represents a decision tree node.
Implementations§
source§impl DTrees_Node
impl DTrees_Node
pub fn default() -> Result<DTrees_Node>
Trait Implementations§
source§impl Boxed for DTrees_Node
impl Boxed for DTrees_Node
source§impl DTrees_NodeTrait for DTrees_Node
impl DTrees_NodeTrait for DTrees_Node
fn as_raw_mut_DTrees_Node(&mut self) -> *mut c_void
source§fn 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.
source§fn 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.
source§fn set_parent(&mut self, val: i32)
fn set_parent(&mut self, val: i32)
Index of the parent node
source§fn 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.
source§impl DTrees_NodeTraitConst for DTrees_Node
impl DTrees_NodeTraitConst for DTrees_Node
fn as_raw_DTrees_Node(&self) -> *const c_void
source§fn 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.
source§fn 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.
source§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.
source§impl Drop for DTrees_Node
impl Drop for DTrees_Node
impl Send for DTrees_Node
impl VectorElement for DTrees_Nodewhere 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more