Public Member Functions | Protected Member Functions | Protected Attributes

CRealFileFeatures Class Reference

Detailed Description

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.

Inheritance diagram for CRealFileFeatures:
Inheritance graph

List of all members.

Public Member Functions

 CRealFileFeatures (void)
 CRealFileFeatures (int32_t size, FILE *file)
 CRealFileFeatures (int32_t size, char *filename)
 CRealFileFeatures (const CRealFileFeatures &orig)
virtual ~CRealFileFeatures ()
virtual float64_tload_feature_matrix ()
int32_t get_label (int32_t idx)
virtual const char * get_name () const

Protected Member Functions

virtual float64_tcompute_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

Constructor & Destructor Documentation

CRealFileFeatures ( void   ) 

default constructor

Definition at line 20 of file RealFileFeatures.cpp.

CRealFileFeatures ( int32_t  size,
FILE *  file 


size cache size
file file to load features from

Definition at line 50 of file RealFileFeatures.cpp.

CRealFileFeatures ( int32_t  size,
char *  filename 


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.

Member Function Documentation

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
label at given index

Definition at line 122 of file RealFileFeatures.cpp.

virtual const char* get_name ( void   )  const [virtual]
object name

Reimplemented from CSimpleFeatures< float64_t >.

Definition at line 64 of file RealFileFeatures.h.

bool load_base_data (  )  [protected]

load base data

if loading was successful

Definition at line 130 of file RealFileFeatures.cpp.

float64_t * load_feature_matrix (  )  [virtual]

load feature matrix

loaded feature matrix

Definition at line 96 of file RealFileFeatures.cpp.

Member Data Documentation

uint8_t doublelen [protected]


Definition at line 96 of file RealFileFeatures.h.

uint32_t endian [protected]


Definition at line 98 of file RealFileFeatures.h.

int64_t filepos [protected]


Definition at line 104 of file RealFileFeatures.h.

uint32_t fourcc [protected]


Definition at line 100 of file RealFileFeatures.h.

uint8_t intlen [protected]


Definition at line 94 of file RealFileFeatures.h.

int32_t* labels [protected]


Definition at line 91 of file RealFileFeatures.h.

uint32_t preprocd [protected]


Definition at line 102 of file RealFileFeatures.h.

bool status [protected]


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.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation