Preprocessor PruneVarSubMean will substract the mean and remove features that have zero variance.
It will optionally normalize standard deviation of features to 1 (by dividing by standard deviation of the feature)
在文件PruneVarSubMean.h第30行定义。

公有成员 | |
| CPruneVarSubMean (bool divide=true) | |
| virtual | ~CPruneVarSubMean () |
| virtual bool | init (CFeatures *f) |
| initialize preprocessor from features | |
| 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) |
| virtual const char * | get_name () |
保护属性 | |
| int32_t * | idx |
| float64_t * | mean |
| float64_t * | std |
| int32_t | num_idx |
| bool | divide_by_std |
| bool | initialized |
| true when already initialized | |
| CPruneVarSubMean | ( | bool | divide = true |
) |
| ~CPruneVarSubMean | ( | ) | [virtual] |
在文件PruneVarSubMean.cpp第27行定义。
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
实现了CSimplePreProc< float64_t >。
在文件PruneVarSubMean.cpp第142行定义。
apply preproc on single feature vector result in feature matrix
实现了CSimplePreProc< float64_t >。
在文件PruneVarSubMean.cpp第178行定义。
| void cleanup | ( | ) | [virtual] |
| virtual const char* get_name | ( | ) | [virtual] |
在文件PruneVarSubMean.h第56行定义。
| bool init | ( | CFeatures * | f | ) | [virtual] |
bool divide_by_std [protected] |
divide by std
在文件PruneVarSubMean.h第68行定义。
int32_t* idx [protected] |
idx
在文件PruneVarSubMean.h第60行定义。
bool initialized [protected] |
true when already initialized
在文件PruneVarSubMean.h第71行定义。
mean
在文件PruneVarSubMean.h第62行定义。
int32_t num_idx [protected] |
num idx
在文件PruneVarSubMean.h第66行定义。
std
在文件PruneVarSubMean.h第64行定义。