64 for (int32_t i=0; i<feature_matrix.
num_cols; i++)
70 return feature_matrix;
80 for (int32_t i=0; i<vector.
vlen; i++)
81 normed_vec[i]=vector.
vector[i]/sum;
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
static void scale_vector(T alpha, T *vec, int32_t len)
Scale vector inplace.
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
static T sum(T *vec, int32_t len)
Return sum(vec)
virtual EFeatureClass get_feature_class() const =0
all of classes and functions are contained in the shogun namespace
virtual void cleanup()
cleanup
The class Features is the base class of all feature objects.
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
virtual EFeatureType get_feature_type() const =0