OpenCV  2.4.13.3
Open Source Computer Vision
CvDTreeTrainData Struct Reference

#include <ml.hpp>

Inheritance diagram for CvDTreeTrainData:
CvERTreeTrainData

Public Member Functions

 CvDTreeTrainData ()
 
 CvDTreeTrainData (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, const CvDTreeParams &params=CvDTreeParams(), bool _shared=false, bool _add_labels=false)
 
virtual ~CvDTreeTrainData ()
 
virtual void set_data (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, const CvDTreeParams &params=CvDTreeParams(), bool _shared=false, bool _add_labels=false, bool _update_data=false)
 
virtual void do_responses_copy ()
 
virtual void get_vectors (const CvMat *_subsample_idx, float *values, uchar *missing, float *responses, bool get_class_idx=false)
 
virtual CvDTreeNodesubsample_data (const CvMat *_subsample_idx)
 
virtual void write_params (CvFileStorage *fs) const
 
virtual void read_params (CvFileStorage *fs, CvFileNode *node)
 
virtual void clear ()
 
int get_num_classes () const
 
int get_var_type (int vi) const
 
int get_work_var_count () const
 
virtual const float * get_ord_responses (CvDTreeNode *n, float *values_buf, int *sample_indices_buf)
 
virtual const intget_class_labels (CvDTreeNode *n, int *labels_buf)
 
virtual const intget_cv_labels (CvDTreeNode *n, int *labels_buf)
 
virtual const intget_sample_indices (CvDTreeNode *n, int *indices_buf)
 
virtual const intget_cat_var_data (CvDTreeNode *n, int vi, int *cat_values_buf)
 
virtual void get_ord_var_data (CvDTreeNode *n, int vi, float *ord_values_buf, int *sorted_indices_buf, const float **ord_values, const int **sorted_indices, int *sample_indices_buf)
 
virtual int get_child_buf_idx (CvDTreeNode *n)
 
virtual bool set_params (const CvDTreeParams &params)
 
virtual CvDTreeNodenew_node (CvDTreeNode *parent, int count, int storage_idx, int offset)
 
virtual CvDTreeSplitnew_split_ord (int vi, float cmp_val, int split_point, int inversed, float quality)
 
virtual CvDTreeSplitnew_split_cat (int vi, float quality)
 
virtual void free_node_data (CvDTreeNode *node)
 
virtual void free_train_data ()
 
virtual void free_node (CvDTreeNode *node)
 
size_t get_length_subbuf () const
 

Public Attributes

int sample_count
 
int var_all
 
int var_count
 
int max_c_count
 
int ord_var_count
 
int cat_var_count
 
int work_var_count
 
bool have_labels
 
bool have_priors
 
bool is_classifier
 
int tflag
 
const CvMattrain_data
 
const CvMatresponses
 
CvMatresponses_copy
 
int buf_count
 
int buf_size
 
bool shared
 
int is_buf_16u
 
CvMatcat_count
 
CvMatcat_ofs
 
CvMatcat_map
 
CvMatcounts
 
CvMatbuf
 
CvMatdirection
 
CvMatsplit_buf
 
CvMatvar_idx
 
CvMatvar_type
 
CvMatpriors
 
CvMatpriors_mult
 
CvDTreeParams params
 
CvMemStoragetree_storage
 
CvMemStoragetemp_storage
 
CvDTreeNodedata_root
 
CvSetnode_heap
 
CvSetsplit_heap
 
CvSetcv_heap
 
CvSetnv_heap
 
cv::RNGrng
 

Constructor & Destructor Documentation

§ CvDTreeTrainData() [1/2]

CvDTreeTrainData::CvDTreeTrainData ( )

§ CvDTreeTrainData() [2/2]

CvDTreeTrainData::CvDTreeTrainData ( const CvMat trainData,
int  tflag,
const CvMat responses,
const CvMat varIdx = 0,
const CvMat sampleIdx = 0,
const CvMat varType = 0,
const CvMat missingDataMask = 0,
const CvDTreeParams params = CvDTreeParams(),
bool  _shared = false,
bool  _add_labels = false 
)

§ ~CvDTreeTrainData()

virtual CvDTreeTrainData::~CvDTreeTrainData ( )
virtual

Member Function Documentation

§ clear()

virtual void CvDTreeTrainData::clear ( )
virtual

§ do_responses_copy()

virtual void CvDTreeTrainData::do_responses_copy ( )
virtual

§ free_node()

virtual void CvDTreeTrainData::free_node ( CvDTreeNode node)
virtual

§ free_node_data()

virtual void CvDTreeTrainData::free_node_data ( CvDTreeNode node)
virtual

§ free_train_data()

virtual void CvDTreeTrainData::free_train_data ( )
virtual

§ get_cat_var_data()

virtual const int* CvDTreeTrainData::get_cat_var_data ( CvDTreeNode n,
int  vi,
int cat_values_buf 
)
virtual

Reimplemented in CvERTreeTrainData.

§ get_child_buf_idx()

virtual int CvDTreeTrainData::get_child_buf_idx ( CvDTreeNode n)
virtual

§ get_class_labels()

virtual const int* CvDTreeTrainData::get_class_labels ( CvDTreeNode n,
int labels_buf 
)
virtual

§ get_cv_labels()

virtual const int* CvDTreeTrainData::get_cv_labels ( CvDTreeNode n,
int labels_buf 
)
virtual

Reimplemented in CvERTreeTrainData.

§ get_length_subbuf()

size_t CvDTreeTrainData::get_length_subbuf ( ) const
inline

§ get_num_classes()

int CvDTreeTrainData::get_num_classes ( ) const

§ get_ord_responses()

virtual const float* CvDTreeTrainData::get_ord_responses ( CvDTreeNode n,
float *  values_buf,
int sample_indices_buf 
)
virtual

§ get_ord_var_data()

virtual void CvDTreeTrainData::get_ord_var_data ( CvDTreeNode n,
int  vi,
float *  ord_values_buf,
int sorted_indices_buf,
const float **  ord_values,
const int **  sorted_indices,
int sample_indices_buf 
)
virtual

Reimplemented in CvERTreeTrainData.

§ get_sample_indices()

virtual const int* CvDTreeTrainData::get_sample_indices ( CvDTreeNode n,
int indices_buf 
)
virtual

Reimplemented in CvERTreeTrainData.

§ get_var_type()

int CvDTreeTrainData::get_var_type ( int  vi) const

§ get_vectors()

virtual void CvDTreeTrainData::get_vectors ( const CvMat _subsample_idx,
float *  values,
uchar missing,
float *  responses,
bool  get_class_idx = false 
)
virtual

Reimplemented in CvERTreeTrainData.

§ get_work_var_count()

int CvDTreeTrainData::get_work_var_count ( ) const
inline

§ new_node()

virtual CvDTreeNode* CvDTreeTrainData::new_node ( CvDTreeNode parent,
int  count,
int  storage_idx,
int  offset 
)
virtual

§ new_split_cat()

virtual CvDTreeSplit* CvDTreeTrainData::new_split_cat ( int  vi,
float  quality 
)
virtual

§ new_split_ord()

virtual CvDTreeSplit* CvDTreeTrainData::new_split_ord ( int  vi,
float  cmp_val,
int  split_point,
int  inversed,
float  quality 
)
virtual

§ read_params()

virtual void CvDTreeTrainData::read_params ( CvFileStorage fs,
CvFileNode node 
)
virtual

§ set_data()

virtual void CvDTreeTrainData::set_data ( const CvMat trainData,
int  tflag,
const CvMat responses,
const CvMat varIdx = 0,
const CvMat sampleIdx = 0,
const CvMat varType = 0,
const CvMat missingDataMask = 0,
const CvDTreeParams params = CvDTreeParams(),
bool  _shared = false,
bool  _add_labels = false,
bool  _update_data = false 
)
virtual

Reimplemented in CvERTreeTrainData.

§ set_params()

virtual bool CvDTreeTrainData::set_params ( const CvDTreeParams params)
virtual

§ subsample_data()

virtual CvDTreeNode* CvDTreeTrainData::subsample_data ( const CvMat _subsample_idx)
virtual

Reimplemented in CvERTreeTrainData.

§ write_params()

virtual void CvDTreeTrainData::write_params ( CvFileStorage fs) const
virtual

Member Data Documentation

§ buf

CvMat* CvDTreeTrainData::buf

§ buf_count

int CvDTreeTrainData::buf_count

§ buf_size

int CvDTreeTrainData::buf_size

§ cat_count

CvMat* CvDTreeTrainData::cat_count

§ cat_map

CvMat* CvDTreeTrainData::cat_map

§ cat_ofs

CvMat* CvDTreeTrainData::cat_ofs

§ cat_var_count

int CvDTreeTrainData::cat_var_count

§ counts

CvMat* CvDTreeTrainData::counts

§ cv_heap

CvSet* CvDTreeTrainData::cv_heap

§ data_root

CvDTreeNode* CvDTreeTrainData::data_root

§ direction

CvMat* CvDTreeTrainData::direction

§ have_labels

bool CvDTreeTrainData::have_labels

§ have_priors

bool CvDTreeTrainData::have_priors

§ is_buf_16u

int CvDTreeTrainData::is_buf_16u

§ is_classifier

bool CvDTreeTrainData::is_classifier

§ max_c_count

int CvDTreeTrainData::max_c_count

§ node_heap

CvSet* CvDTreeTrainData::node_heap

§ nv_heap

CvSet* CvDTreeTrainData::nv_heap

§ ord_var_count

int CvDTreeTrainData::ord_var_count

§ params

CvDTreeParams CvDTreeTrainData::params

§ priors

CvMat* CvDTreeTrainData::priors

§ priors_mult

CvMat* CvDTreeTrainData::priors_mult

§ responses

const CvMat* CvDTreeTrainData::responses

§ responses_copy

CvMat* CvDTreeTrainData::responses_copy

§ rng

cv::RNG* CvDTreeTrainData::rng

§ sample_count

int CvDTreeTrainData::sample_count

§ shared

bool CvDTreeTrainData::shared

§ split_buf

CvMat* CvDTreeTrainData::split_buf

§ split_heap

CvSet* CvDTreeTrainData::split_heap

§ temp_storage

CvMemStorage* CvDTreeTrainData::temp_storage

§ tflag

int CvDTreeTrainData::tflag

§ train_data

const CvMat* CvDTreeTrainData::train_data

§ tree_storage

CvMemStorage* CvDTreeTrainData::tree_storage

§ var_all

int CvDTreeTrainData::var_all

§ var_count

int CvDTreeTrainData::var_count

§ var_idx

CvMat* CvDTreeTrainData::var_idx

§ var_type

CvMat* CvDTreeTrainData::var_type

§ work_var_count

int CvDTreeTrainData::work_var_count

The documentation for this struct was generated from the following file: