CRealFileFeatures Class Reference

Inheritance diagram for CRealFileFeatures:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 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)

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


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


Constructor & Destructor Documentation

CRealFileFeatures::CRealFileFeatures ( int32_t  size,
FILE *  file 
)

constructor

Parameters:
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

Parameters:
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.


Member Function Documentation

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

Parameters:
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

Parameters:
idx index to look at
Returns:
label at given index

Definition at line 105 of file RealFileFeatures.cpp.

bool CRealFileFeatures::load_base_data (  )  [protected]

load base data

Returns:
if loading was successful

Definition at line 113 of file RealFileFeatures.cpp.

float64_t * CRealFileFeatures::load_feature_matrix (  )  [virtual]

load feature matrix

Returns:
loaded feature matrix

Definition at line 79 of file RealFileFeatures.cpp.


Member Data Documentation

uint8_t CRealFileFeatures::doublelen [protected]

doublelen

Definition at line 85 of file RealFileFeatures.h.

uint32_t CRealFileFeatures::endian [protected]

endian

Definition at line 87 of file RealFileFeatures.h.

int64_t CRealFileFeatures::filepos [protected]

filepos

Definition at line 93 of file RealFileFeatures.h.

uint32_t CRealFileFeatures::fourcc [protected]

fourcc

Definition at line 89 of file RealFileFeatures.h.

uint8_t CRealFileFeatures::intlen [protected]

intlen

Definition at line 83 of file RealFileFeatures.h.

int32_t* CRealFileFeatures::labels [protected]

labels

Definition at line 80 of file RealFileFeatures.h.

uint32_t CRealFileFeatures::preprocd [protected]

preprocd

Definition at line 91 of file RealFileFeatures.h.

bool CRealFileFeatures::status [protected]

status

Definition at line 78 of file RealFileFeatures.h.

working file

Definition at line 74 of file RealFileFeatures.h.

working filename

Definition at line 76 of file RealFileFeatures.h.


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

SHOGUN Machine Learning Toolbox - Documentation