[−][src]Struct opencv::types::PtrOfDTrees
Methods
impl PtrOfDTrees
[src]
pub fn as_raw_PtrOfDTrees(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
Trait Implementations
impl Algorithm for PtrOfDTrees
[src]
fn as_raw_Algorithm(&self) -> *mut c_void
[src]
fn clear(&mut self) -> Result<()>
[src]
Clears the algorithm state
fn empty(&self) -> Result<bool>
[src]
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
fn save(&self, filename: &str) -> Result<()>
[src]
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
fn get_default_name(&self) -> Result<String>
[src]
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more
impl DTrees for PtrOfDTrees
[src]
fn as_raw_DTrees(&self) -> *mut c_void
[src]
fn get_max_categories(&self) -> Result<i32>
[src]
@see setMaxCategories
fn set_max_categories(&mut self, val: i32) -> Result<()>
[src]
@copybrief getMaxCategories @see getMaxCategories
fn get_max_depth(&self) -> Result<i32>
[src]
@see setMaxDepth
fn set_max_depth(&mut self, val: i32) -> Result<()>
[src]
@copybrief getMaxDepth @see getMaxDepth
fn get_min_sample_count(&self) -> Result<i32>
[src]
@see setMinSampleCount
fn set_min_sample_count(&mut self, val: i32) -> Result<()>
[src]
@copybrief getMinSampleCount @see getMinSampleCount
fn get_cv_folds(&self) -> Result<i32>
[src]
@see setCVFolds
fn set_cv_folds(&mut self, val: i32) -> Result<()>
[src]
@copybrief getCVFolds @see getCVFolds
fn get_use_surrogates(&self) -> Result<bool>
[src]
@see setUseSurrogates
fn set_use_surrogates(&mut self, val: bool) -> Result<()>
[src]
@copybrief getUseSurrogates @see getUseSurrogates
fn get_use1_se_rule(&self) -> Result<bool>
[src]
@see setUse1SERule
fn set_use1_se_rule(&mut self, val: bool) -> Result<()>
[src]
@copybrief getUse1SERule @see getUse1SERule
fn get_truncate_pruned_tree(&self) -> Result<bool>
[src]
@see setTruncatePrunedTree
fn set_truncate_pruned_tree(&mut self, val: bool) -> Result<()>
[src]
@copybrief getTruncatePrunedTree @see getTruncatePrunedTree
fn get_regression_accuracy(&self) -> Result<f32>
[src]
@see setRegressionAccuracy
fn set_regression_accuracy(&mut self, val: f32) -> Result<()>
[src]
@copybrief getRegressionAccuracy @see getRegressionAccuracy
fn get_priors(&self) -> Result<Mat>
[src]
@see setPriors
fn set_priors(&mut self, val: &Mat) -> Result<()>
[src]
@copybrief getPriors @see getPriors
fn get_roots(&self) -> Result<VectorOfint>
[src]
Returns indices of root nodes
fn get_nodes(&self) -> Result<VectorOfNode>
[src]
Returns all the nodes Read more
fn get_splits(&self) -> Result<VectorOfSplit>
[src]
Returns all the splits Read more
fn get_subsets(&self) -> Result<VectorOfint>
[src]
Returns all the bitsets for categorical splits Read more
impl StatModel for PtrOfDTrees
[src]
fn as_raw_StatModel(&self) -> *mut c_void
[src]
fn get_var_count(&self) -> Result<i32>
[src]
Returns the number of variables in training samples
fn empty(&self) -> Result<bool>
[src]
fn is_trained(&self) -> Result<bool>
[src]
Returns true if the model is trained
fn is_classifier(&self) -> Result<bool>
[src]
Returns true if the model is classifier
fn train_with_data(
&mut self,
train_data: &PtrOfTrainData,
flags: i32
) -> Result<bool>
[src]
&mut self,
train_data: &PtrOfTrainData,
flags: i32
) -> Result<bool>
Trains the statistical model Read more
fn train(&mut self, samples: &Mat, layout: i32, responses: &Mat) -> Result<bool>
[src]
Trains the statistical model Read more
fn calc_error(
&self,
data: &PtrOfTrainData,
test: bool,
resp: &mut Mat
) -> Result<f32>
[src]
&self,
data: &PtrOfTrainData,
test: bool,
resp: &mut Mat
) -> Result<f32>
Computes error on the training or test dataset Read more
fn predict(&self, samples: &Mat, results: &mut Mat, flags: i32) -> Result<f32>
[src]
Predicts response(s) for the provided sample(s) Read more
impl Send for PtrOfDTrees
[src]
impl Drop for PtrOfDTrees
[src]
Auto Trait Implementations
impl Unpin for PtrOfDTrees
impl !Sync for PtrOfDTrees
impl RefUnwindSafe for PtrOfDTrees
impl UnwindSafe for PtrOfDTrees
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,