[−][src]Struct opencv::types::PtrOfRTrees
Methods
impl PtrOfRTrees
[src]
pub fn as_raw_PtrOfRTrees(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
Trait Implementations
impl Algorithm for PtrOfRTrees
[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 PtrOfRTrees
[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 RTrees for PtrOfRTrees
[src]
fn as_raw_RTrees(&self) -> *mut c_void
[src]
fn get_calculate_var_importance(&self) -> Result<bool>
[src]
@see setCalculateVarImportance
fn set_calculate_var_importance(&mut self, val: bool) -> Result<()>
[src]
@copybrief getCalculateVarImportance @see getCalculateVarImportance
fn get_active_var_count(&self) -> Result<i32>
[src]
@see setActiveVarCount
fn set_active_var_count(&mut self, val: i32) -> Result<()>
[src]
@copybrief getActiveVarCount @see getActiveVarCount
fn get_term_criteria(&self) -> Result<TermCriteria>
[src]
@see setTermCriteria
fn set_term_criteria(&mut self, val: &TermCriteria) -> Result<()>
[src]
@copybrief getTermCriteria @see getTermCriteria
fn get_var_importance(&self) -> Result<Mat>
[src]
Returns the variable importance array. The method returns the variable importance vector, computed at the training stage when CalculateVarImportance is set to true. If this flag was set to false, the empty matrix is returned. Read more
fn get_votes(&self, samples: &Mat, results: &mut Mat, flags: i32) -> Result<()>
[src]
Returns the result of each individual tree in the forest. In case the model is a regression problem, the method will return each of the trees' results for each of the sample cases. If the model is a classifier, it will return a Mat with samples + 1 rows, where the first row gives the class number and the following rows return the votes each class had for each sample. ## Parameters * samples: Array containing the samples for which votes will be calculated. * results: Array where the result of the calculation will be written. * flags: Flags for defining the type of RTrees. Read more
impl StatModel for PtrOfRTrees
[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 PtrOfRTrees
[src]
impl Drop for PtrOfRTrees
[src]
Auto Trait Implementations
impl Unpin for PtrOfRTrees
impl !Sync for PtrOfRTrees
impl RefUnwindSafe for PtrOfRTrees
impl UnwindSafe for PtrOfRTrees
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,