45 virtual bool load(FILE* f);
47 virtual bool save(FILE* f);
59 virtual const char*
get_name()
const {
return "SumOne"; }
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
virtual bool load(FILE *f)
initialize preprocessor from file
virtual bool save(FILE *f)
save preprocessor init-data to file
virtual const char * get_name() const
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
virtual EPreprocessorType get_type() const
return a type of preprocessor
virtual void cleanup()
cleanup
The class Features is the base class of all feature objects.
virtual bool init(CFeatures *features)
initialize preprocessor from features
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
Preprocessor SumOne, normalizes vectors to have sum 1.