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§unsafe fn from_raw(
ptr: <DTrees_Node as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <DTrees_Node as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <DTrees_Node as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
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 Debug for DTrees_Node
impl Debug for DTrees_Node
Source§impl Drop for DTrees_Node
impl Drop for DTrees_Node
impl Send for DTrees_Node
Auto Trait Implementations§
impl Freeze for DTrees_Node
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
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more