The class RealFileFeatures implements a dense double-precision floating point matrix from a file.
It inherits its functionality from CSimpleFeatures, which should be consulted for further reference.
Definition at line 23 of file RealFileFeatures.h.
Public Member Functions | |
CRealFileFeatures (int32_t size, FILE *file) | |
CRealFileFeatures (int32_t size, char *filename) | |
CRealFileFeatures (const CRealFileFeatures &orig) | |
virtual | ~CRealFileFeatures () |
virtual float64_t * | load_feature_matrix () |
int32_t | get_label (int32_t idx) |
virtual const char * | get_name () const |
Protected Member Functions | |
virtual float64_t * | compute_feature_vector (int32_t num, int32_t &len, float64_t *target=NULL) |
bool | load_base_data () |
Protected Attributes | |
FILE * | working_file |
char * | working_filename |
bool | status |
int32_t * | labels |
uint8_t | intlen |
uint8_t | doublelen |
uint32_t | endian |
uint32_t | fourcc |
uint32_t | preprocd |
int64_t | filepos |
CRealFileFeatures::CRealFileFeatures | ( | int32_t | size, | |
FILE * | file | |||
) |
constructor
size | cache size | |
file | file to load features from |
Definition at line 33 of file RealFileFeatures.cpp.
CRealFileFeatures::CRealFileFeatures | ( | int32_t | size, | |
char * | filename | |||
) |
constructor
size | cache size | |
filename | filename to load features from |
Definition at line 18 of file RealFileFeatures.cpp.
CRealFileFeatures::CRealFileFeatures | ( | const CRealFileFeatures & | orig | ) |
copy constructor
Definition at line 53 of file RealFileFeatures.cpp.
CRealFileFeatures::~CRealFileFeatures | ( | ) | [virtual] |
Definition at line 46 of file RealFileFeatures.cpp.
float64_t * CRealFileFeatures::compute_feature_vector | ( | int32_t | num, | |
int32_t & | len, | |||
float64_t * | target = NULL | |||
) | [protected, virtual] |
compute feature vector for sample num len is returned by reference
num | num | |
len | len | |
target | target |
Reimplemented from CSimpleFeatures< float64_t >.
Definition at line 65 of file RealFileFeatures.cpp.
int32_t CRealFileFeatures::get_label | ( | int32_t | idx | ) |
get label at given index
idx | index to look at |
Definition at line 105 of file RealFileFeatures.cpp.
virtual const char* CRealFileFeatures::get_name | ( | ) | const [virtual] |
Reimplemented from CSimpleFeatures< float64_t >.
Definition at line 59 of file RealFileFeatures.h.
bool CRealFileFeatures::load_base_data | ( | ) | [protected] |
load base data
Definition at line 113 of file RealFileFeatures.cpp.
float64_t * CRealFileFeatures::load_feature_matrix | ( | ) | [virtual] |
load feature matrix
Definition at line 79 of file RealFileFeatures.cpp.
uint8_t CRealFileFeatures::doublelen [protected] |
doublelen
Definition at line 90 of file RealFileFeatures.h.
uint32_t CRealFileFeatures::endian [protected] |
endian
Definition at line 92 of file RealFileFeatures.h.
int64_t CRealFileFeatures::filepos [protected] |
filepos
Definition at line 98 of file RealFileFeatures.h.
uint32_t CRealFileFeatures::fourcc [protected] |
fourcc
Definition at line 94 of file RealFileFeatures.h.
uint8_t CRealFileFeatures::intlen [protected] |
intlen
Definition at line 88 of file RealFileFeatures.h.
int32_t* CRealFileFeatures::labels [protected] |
labels
Definition at line 85 of file RealFileFeatures.h.
uint32_t CRealFileFeatures::preprocd [protected] |
preprocd
Definition at line 96 of file RealFileFeatures.h.
bool CRealFileFeatures::status [protected] |
status
Definition at line 83 of file RealFileFeatures.h.
FILE* CRealFileFeatures::working_file [protected] |
working file
Definition at line 79 of file RealFileFeatures.h.
char* CRealFileFeatures::working_filename [protected] |
working filename
Definition at line 81 of file RealFileFeatures.h.