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 25 of file RealFileFeatures.h.

Public Member Functions | |
| CRealFileFeatures () | |
| 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 |
default constructor
Definition at line 20 of file RealFileFeatures.cpp.
| CRealFileFeatures | ( | int32_t | size, | |
| FILE * | file | |||
| ) |
constructor
| size | cache size | |
| file | file to load features from |
Definition at line 50 of file RealFileFeatures.cpp.
| CRealFileFeatures | ( | int32_t | size, | |
| char * | filename | |||
| ) |
constructor
| size | cache size | |
| filename | filename to load features from |
Definition at line 35 of file RealFileFeatures.cpp.
| CRealFileFeatures | ( | const CRealFileFeatures & | orig | ) |
copy constructor
Definition at line 70 of file RealFileFeatures.cpp.
| ~CRealFileFeatures | ( | ) | [virtual] |
Definition at line 63 of file RealFileFeatures.cpp.
| float64_t * 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 82 of file RealFileFeatures.cpp.
| int32_t get_label | ( | int32_t | idx | ) |
get label at given index
| idx | index to look at |
Definition at line 122 of file RealFileFeatures.cpp.
| virtual const char* get_name | ( | ) | const [virtual] |
Reimplemented from CSimpleFeatures< float64_t >.
Definition at line 64 of file RealFileFeatures.h.
| bool load_base_data | ( | ) | [protected] |
load base data
Definition at line 130 of file RealFileFeatures.cpp.
| float64_t * load_feature_matrix | ( | ) | [virtual] |
load feature matrix
Definition at line 96 of file RealFileFeatures.cpp.
uint8_t doublelen [protected] |
doublelen
Definition at line 96 of file RealFileFeatures.h.
uint32_t endian [protected] |
endian
Definition at line 98 of file RealFileFeatures.h.
int64_t filepos [protected] |
filepos
Definition at line 104 of file RealFileFeatures.h.
uint32_t fourcc [protected] |
fourcc
Definition at line 100 of file RealFileFeatures.h.
uint8_t intlen [protected] |
intlen
Definition at line 94 of file RealFileFeatures.h.
int32_t* labels [protected] |
labels
Definition at line 91 of file RealFileFeatures.h.
uint32_t preprocd [protected] |
preprocd
Definition at line 102 of file RealFileFeatures.h.
bool status [protected] |
status
Definition at line 89 of file RealFileFeatures.h.
FILE* working_file [protected] |
working file
Definition at line 85 of file RealFileFeatures.h.
char* working_filename [protected] |
working filename
Definition at line 87 of file RealFileFeatures.h.