12 #ifndef _IMPLICITSPECFEATURES_H___
13 #define _IMPLICITSPECFEATURES_H___
25 template <
class ST>
class CStringFeatures;
91 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
132 #ifndef DOXYGEN_SHOULD_SKIP_THIS
134 struct wspec_feature_iterator
189 virtual const char*
get_name()
const {
return "ImplicitWeightedSpecFeatures"; }
218 #endif // _IMPLICITSPECFEATURES_H___
virtual int32_t get_nnz_features_for_vector(int32_t num)
virtual bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual const char * get_name() const
virtual void * get_feature_iterator(int32_t vector_index)
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
void compute_normalization_const()
virtual int32_t get_dim_feature_space() const
virtual ~CImplicitWeightedSpecFeatures()
Features that support dot products among other operations.
bool set_weights(float64_t *w, int32_t d)
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
EFeatureClass
shogun feature class
Features that compute the Weighted Spectrum Kernel feature space explicitly.
virtual CFeatures * duplicate() const
virtual void add_to_dense_vec(float64_t alpha, int32_t vec_idx1, float64_t *vec2, int32_t vec2_len, bool abs_val=false)
virtual EFeatureClass get_feature_class() const
float64_t * normalization_factors
virtual void free_feature_iterator(void *iterator)
EFeatureType
shogun feature type
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual int32_t get_num_vectors() const
virtual EFeatureType get_feature_type() const
CImplicitWeightedSpecFeatures()
CStringFeatures< uint16_t > * strings