11 #ifndef _PNORM_ONE__H__ 12 #define _PNORM_ONE__H__ 14 #include <shogun/lib/config.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 ();
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)
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
virtual EPreprocessorType get_type() const
return a type of preprocessor
The class Features is the base class of all feature objects.
virtual const char * get_name() const