Public Member Functions | |
CPruneVarSubMean (bool divide=true) | |
virtual | ~CPruneVarSubMean () |
virtual bool | init (CFeatures *f) |
initialize preprocessor from features | |
virtual bool | load_init_data (FILE *src) |
initialize preprocessor from file | |
virtual bool | save_init_data (FILE *dst) |
save init-data (like transforamtion matrices etc) to file | |
virtual void | cleanup () |
cleanup | |
virtual float64_t * | apply_to_feature_matrix (CFeatures *f) |
virtual float64_t * | apply_to_feature_vector (float64_t *f, int32_t &len) |
Protected Attributes | |
int32_t * | idx |
float64_t * | mean |
float64_t * | std |
int32_t | num_idx |
bool | divide_by_std |
bool | initialized |
true when already initialized |
Definition at line 26 of file PruneVarSubMean.h.
CPruneVarSubMean::CPruneVarSubMean | ( | bool | divide = true |
) |
constructor
divide | if division shall be made |
Definition at line 19 of file PruneVarSubMean.cpp.
CPruneVarSubMean::~CPruneVarSubMean | ( | ) | [virtual] |
Definition at line 25 of file PruneVarSubMean.cpp.
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
Implements CSimplePreProc< float64_t >.
Definition at line 140 of file PruneVarSubMean.cpp.
apply preproc on single feature vector result in feature matrix
apply preproc on single feature vector result in feature matrix
Implements CSimplePreProc< float64_t >.
Definition at line 176 of file PruneVarSubMean.cpp.
void CPruneVarSubMean::cleanup | ( | ) | [virtual] |
cleanup
clean up allocated memory
Implements CPreProc.
Definition at line 127 of file PruneVarSubMean.cpp.
bool CPruneVarSubMean::init | ( | CFeatures * | f | ) | [virtual] |
initialize preprocessor from features
Implements CPreProc.
Definition at line 31 of file PruneVarSubMean.cpp.
bool CPruneVarSubMean::load_init_data | ( | FILE * | src | ) | [virtual] |
initialize preprocessor from file
Implements CPreProc.
Definition at line 207 of file PruneVarSubMean.cpp.
bool CPruneVarSubMean::save_init_data | ( | FILE * | dst | ) | [virtual] |
save init-data (like transforamtion matrices etc) to file
Implements CPreProc.
Definition at line 233 of file PruneVarSubMean.cpp.
bool CPruneVarSubMean::divide_by_std [protected] |
divide by std
Definition at line 66 of file PruneVarSubMean.h.
int32_t* CPruneVarSubMean::idx [protected] |
idx
Definition at line 58 of file PruneVarSubMean.h.
bool CPruneVarSubMean::initialized [protected] |
float64_t* CPruneVarSubMean::mean [protected] |
mean
Definition at line 60 of file PruneVarSubMean.h.
int32_t CPruneVarSubMean::num_idx [protected] |
num idx
Definition at line 64 of file PruneVarSubMean.h.
float64_t* CPruneVarSubMean::std [protected] |
std
Definition at line 62 of file PruneVarSubMean.h.