[][src]Struct opencv::types::PtrOfTrainData

pub struct PtrOfTrainData { /* fields omitted */ }

Methods

impl PtrOfTrainData[src]

pub fn as_raw_PtrOfTrainData(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

Trait Implementations

impl TrainData for PtrOfTrainData[src]

fn missing_value(&mut self) -> Result<f32>[src]

fn get_layout(&self) -> Result<i32>[src]

fn get_n_train_samples(&self) -> Result<i32>[src]

fn get_n_test_samples(&self) -> Result<i32>[src]

fn get_n_samples(&self) -> Result<i32>[src]

fn get_n_vars(&self) -> Result<i32>[src]

fn get_n_all_vars(&self) -> Result<i32>[src]

fn get_sample(&self, var_idx: &Mat, sidx: i32, buf: &mut f32) -> Result<()>[src]

fn get_samples(&self) -> Result<Mat>[src]

fn get_missing(&self) -> Result<Mat>[src]

fn get_train_samples(
    &self,
    layout: i32,
    compress_samples: bool,
    compress_vars: bool
) -> Result<Mat>
[src]

Returns matrix of train samples Read more

fn get_train_responses(&self) -> Result<Mat>[src]

Returns the vector of responses Read more

fn get_train_norm_cat_responses(&self) -> Result<Mat>[src]

Returns the vector of normalized categorical responses Read more

fn get_test_responses(&self) -> Result<Mat>[src]

fn get_test_norm_cat_responses(&self) -> Result<Mat>[src]

fn get_responses(&self) -> Result<Mat>[src]

fn get_norm_cat_responses(&self) -> Result<Mat>[src]

fn get_sample_weights(&self) -> Result<Mat>[src]

fn get_train_sample_weights(&self) -> Result<Mat>[src]

fn get_test_sample_weights(&self) -> Result<Mat>[src]

fn get_var_idx(&self) -> Result<Mat>[src]

fn get_var_type(&self) -> Result<Mat>[src]

fn get_var_symbol_flags(&self) -> Result<Mat>[src]

fn get_response_type(&self) -> Result<i32>[src]

fn get_train_sample_idx(&self) -> Result<Mat>[src]

fn get_test_sample_idx(&self) -> Result<Mat>[src]

fn get_values(&self, vi: i32, sidx: &Mat, values: &mut f32) -> Result<()>[src]

fn get_norm_cat_values(
    &self,
    vi: i32,
    sidx: &Mat,
    values: &mut i32
) -> Result<()>
[src]

fn get_default_subst_values(&self) -> Result<Mat>[src]

fn get_cat_count(&self, vi: i32) -> Result<i32>[src]

fn get_class_labels(&self) -> Result<Mat>[src]

Returns the vector of class labels Read more

fn get_cat_ofs(&self) -> Result<Mat>[src]

fn get_cat_map(&self) -> Result<Mat>[src]

fn set_train_test_split(&mut self, count: i32, shuffle: bool) -> Result<()>[src]

Splits the training data into the training and test parts ## See also TrainData::setTrainTestSplitRatio Read more

fn set_train_test_split_ratio(
    &mut self,
    ratio: f64,
    shuffle: bool
) -> Result<()>
[src]

Splits the training data into the training and test parts Read more

fn shuffle_train_test(&mut self) -> Result<()>[src]

fn get_test_samples(&self) -> Result<Mat>[src]

Returns matrix of test samples

fn get_names(&self, names: &mut VectorOfString) -> Result<()>[src]

Returns vector of symbolic names captured in loadFromCSV()

impl Send for PtrOfTrainData[src]

impl Drop for PtrOfTrainData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]