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]/norm;
double norm(double *v, double p, int n)
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
virtual bool load(FILE *f)
initialize preprocessor from file
virtual bool save(FILE *f)
save preprocessor init-data to file
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
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...
virtual void cleanup()
cleanup
virtual EFeatureClass get_feature_class() const =0
static float64_t dot(const bool *v1, const bool *v2, int32_t n)
Compute dot product between v1 and v2 (blas optimized)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
static float32_t sqrt(float32_t x)
virtual EFeatureType get_feature_type() const =0