11 #ifndef _PNORM_ONE__H__
12 #define _PNORM_ONE__H__
51 virtual bool load (FILE* f);
53 virtual bool save (FILE* f);
65 virtual const char*
get_name ()
const {
return "PNorm"; }
83 void register_param ();
virtual EPreprocessorType get_type() const
return a type of preprocessor
void set_pnorm(double pnorm)
virtual bool save(FILE *f)
save preprocessor init-data to file
virtual void cleanup()
cleanup
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
virtual const char * get_name() const
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
Preprocessor PNorm, normalizes vectors to have p-norm.
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
virtual bool init(CFeatures *features)
initialize preprocessor from features
virtual bool load(FILE *f)
initialize preprocessor from file
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.