Preprocessor NormOne, normalizes vectors to have norm 1.
Formally, it computes
It therefore does not need any initialization. It is most useful to get data onto a ball of radius one.

公有成员 | |
| CNormOne () | |
| virtual | ~CNormOne () |
| virtual bool | init (CFeatures *f) |
| initialize preprocessor from features | |
| virtual void | cleanup () |
| cleanup | |
| virtual bool | load (FILE *f) |
| initialize preprocessor from file | |
| virtual bool | save (FILE *f) |
| save preprocessor init-data to file | |
| 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 () |
| CNormOne | ( | ) |
default constructor
在文件NormOne.cpp第19行定义。
| ~CNormOne | ( | ) | [virtual] |
在文件NormOne.cpp第24行定义。
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
实现了CSimplePreProc< float64_t >。
在文件NormOne.cpp第57行定义。
apply preproc on single feature vector result in feature matrix
实现了CSimplePreProc< float64_t >。
在文件NormOne.cpp第74行定义。
| void cleanup | ( | ) | [virtual] |
| bool init | ( | CFeatures * | f | ) | [virtual] |
| bool load | ( | FILE * | f | ) | [virtual] |
initialize preprocessor from file
在文件NormOne.cpp第43行定义。
| bool save | ( | FILE * | f | ) | [virtual] |
save preprocessor init-data to file
在文件NormOne.cpp第49行定义。