OpenCV  2.4.13.2
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::CvMLData ( )

§ ~CvMLData()

virtual CvMLData::~CvMLData ( )
virtual

Member Function Documentation

§ chahge_var_idx()

void CvMLData::chahge_var_idx ( int  vi,
bool  state 
)

§ change_var_idx()

void CvMLData::change_var_idx ( int  vi,
bool  state 
)

§ change_var_type()

void CvMLData::change_var_type ( int  var_idx,
int  type 
)

§ clear()

virtual void CvMLData::clear ( )
protectedvirtual

§ free_train_test_idx()

void CvMLData::free_train_test_idx ( )
protected

§ get_class_labels_map()

const std::map<std::string, int>& CvMLData::get_class_labels_map ( ) const

§ get_delimiter()

char CvMLData::get_delimiter ( ) const

§ get_miss_ch()

char CvMLData::get_miss_ch ( ) const

§ get_missing()

const CvMat* CvMLData::get_missing ( ) const

§ get_response_idx()

int CvMLData::get_response_idx ( ) const

§ get_responses()

const CvMat* CvMLData::get_responses ( )

§ get_test_sample_idx()

const CvMat* CvMLData::get_test_sample_idx ( ) const

§ get_train_sample_idx()

const CvMat* CvMLData::get_train_sample_idx ( ) const

§ get_values()

const CvMat* CvMLData::get_values ( ) const

§ get_var_idx()

const CvMat* CvMLData::get_var_idx ( )

§ get_var_type()

int CvMLData::get_var_type ( int  var_idx) const

§ get_var_types()

const CvMat* CvMLData::get_var_types ( )

§ mix_train_and_test_idx()

void CvMLData::mix_train_and_test_idx ( )

§ read_csv()

int CvMLData::read_csv ( const char *  filename)

§ set_delimiter()

void CvMLData::set_delimiter ( char  ch)

§ set_miss_ch()

void CvMLData::set_miss_ch ( char  ch)

§ set_response_idx()

void CvMLData::set_response_idx ( int  idx)

§ set_train_test_split()

void CvMLData::set_train_test_split ( const CvTrainTestSplit spl)

§ set_var_types()

void CvMLData::set_var_types ( const char *  str)

§ str_to_flt_elem()

void CvMLData::str_to_flt_elem ( const char *  token,
float &  flt_elem,
int type 
)
protected

Member Data Documentation

§ class_map

std::map<std::string, int> CvMLData::class_map
protected

§ delimiter

char CvMLData::delimiter
protected

§ miss_ch

char CvMLData::miss_ch
protected

§ missing

CvMat* CvMLData::missing
protected

§ mix

bool CvMLData::mix
protected

§ response_idx

int CvMLData::response_idx
protected

§ response_out

CvMat* CvMLData::response_out
protected

§ rng

cv::RNG* CvMLData::rng
protected

§ sample_idx

int* CvMLData::sample_idx
protected

§ test_sample_idx

CvMat* CvMLData::test_sample_idx
protected

§ total_class_count

int CvMLData::total_class_count
protected

§ train_sample_count

int CvMLData::train_sample_count
protected

§ train_sample_idx

CvMat* CvMLData::train_sample_idx
protected

§ values

CvMat* CvMLData::values
protected

§ var_idx_mask

CvMat* CvMLData::var_idx_mask
protected

§ var_idx_out

CvMat* CvMLData::var_idx_out
protected

§ var_types

CvMat* CvMLData::var_types
protected

§ var_types_out

CvMat* CvMLData::var_types_out
protected

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