OpenCV  2.4.13
Open Source Computer Vision
CvMLData Class Reference

#include <ml.hpp>

Public Member Functions

 CvMLData ()
 
virtual ~CvMLData ()
 
int read_csv (const char *filename)
 
const CvMatget_values () const
 
const CvMatget_responses ()
 
const CvMatget_missing () const
 
void set_response_idx (int idx)
 
int get_response_idx () const
 
void set_train_test_split (const CvTrainTestSplit *spl)
 
const CvMatget_train_sample_idx () const
 
const CvMatget_test_sample_idx () const
 
void mix_train_and_test_idx ()
 
const CvMatget_var_idx ()
 
void chahge_var_idx (int vi, bool state)
 
void change_var_idx (int vi, bool state)
 
const CvMatget_var_types ()
 
int get_var_type (int var_idx) const
 
void set_var_types (const char *str)
 
void change_var_type (int var_idx, int type)
 
void set_delimiter (char ch)
 
char get_delimiter () const
 
void set_miss_ch (char ch)
 
char get_miss_ch () const
 
const std::map< std::string, int > & get_class_labels_map () const
 

Protected Member Functions

virtual void clear ()
 
void str_to_flt_elem (const char *token, float &flt_elem, int &type)
 
void free_train_test_idx ()
 

Protected Attributes

char delimiter
 
char miss_ch
 
CvMatvalues
 
CvMatmissing
 
CvMatvar_types
 
CvMatvar_idx_mask
 
CvMatresponse_out
 
CvMatvar_idx_out
 
CvMatvar_types_out
 
int response_idx
 
int train_sample_count
 
bool mix
 
int total_class_count
 
std::map< std::string, intclass_map
 
CvMattrain_sample_idx
 
CvMattest_sample_idx
 
intsample_idx
 
cv::RNGrng
 

Constructor & Destructor Documentation

CvMLData::CvMLData ( )
virtual CvMLData::~CvMLData ( )
virtual

Member Function Documentation

void CvMLData::chahge_var_idx ( int  vi,
bool  state 
)
void CvMLData::change_var_idx ( int  vi,
bool  state 
)
void CvMLData::change_var_type ( int  var_idx,
int  type 
)
virtual void CvMLData::clear ( )
protectedvirtual
void CvMLData::free_train_test_idx ( )
protected
const std::map<std::string, int>& CvMLData::get_class_labels_map ( ) const
char CvMLData::get_delimiter ( ) const
char CvMLData::get_miss_ch ( ) const
const CvMat* CvMLData::get_missing ( ) const
int CvMLData::get_response_idx ( ) const
const CvMat* CvMLData::get_responses ( )
const CvMat* CvMLData::get_test_sample_idx ( ) const
const CvMat* CvMLData::get_train_sample_idx ( ) const
const CvMat* CvMLData::get_values ( ) const
const CvMat* CvMLData::get_var_idx ( )
int CvMLData::get_var_type ( int  var_idx) const
const CvMat* CvMLData::get_var_types ( )
void CvMLData::mix_train_and_test_idx ( )
int CvMLData::read_csv ( const char *  filename)
void CvMLData::set_delimiter ( char  ch)
void CvMLData::set_miss_ch ( char  ch)
void CvMLData::set_response_idx ( int  idx)
void CvMLData::set_train_test_split ( const CvTrainTestSplit spl)
void CvMLData::set_var_types ( const char *  str)
void CvMLData::str_to_flt_elem ( const char *  token,
float &  flt_elem,
int type 
)
protected

Member Data Documentation

std::map<std::string, int> CvMLData::class_map
protected
char CvMLData::delimiter
protected
char CvMLData::miss_ch
protected
CvMat* CvMLData::missing
protected
bool CvMLData::mix
protected
int CvMLData::response_idx
protected
CvMat* CvMLData::response_out
protected
cv::RNG* CvMLData::rng
protected
int* CvMLData::sample_idx
protected
CvMat* CvMLData::test_sample_idx
protected
int CvMLData::total_class_count
protected
int CvMLData::train_sample_count
protected
CvMat* CvMLData::train_sample_idx
protected
CvMat* CvMLData::values
protected
CvMat* CvMLData::var_idx_mask
protected
CvMat* CvMLData::var_idx_out
protected
CvMat* CvMLData::var_types
protected
CvMat* CvMLData::var_types_out
protected

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