12 #ifndef _CPRUNE_VAR_SUB_MEAN__H__
13 #define _CPRUNE_VAR_SUB_MEAN__H__
58 virtual const char*
get_name()
const {
return "PruneVarSubMean"; }
65 void register_parameters();
virtual EPreprocessorType get_type() const
return a type of preprocessor
SGVector< float64_t > m_mean
virtual void cleanup()
cleanup
Preprocessor PruneVarSubMean will substract the mean and remove features that have zero variance...
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
SGVector< int32_t > m_idx
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
bool m_initialized
true when already initialized
SGVector< float64_t > m_std
virtual bool init(CFeatures *features)
initialize preprocessor from features
virtual ~CPruneVarSubMean()
virtual const char * get_name() const
CPruneVarSubMean(bool divide=true)