11 #ifndef _EXPLICITSPECFEATURES_H___
12 #define _EXPLICITSPECFEATURES_H___
22 template <
class ST>
class CStringFeatures;
88 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
90 #ifndef DOXYGEN_SHOULD_SKIP_THIS
92 struct explicit_spec_feature_iterator
165 virtual const char*
get_name()
const {
return "ExplicitSpecFeatures"; }
191 #endif // _EXPLICITSPECFEATURES_H___
void delete_kmer_spectrum()
void obtain_kmer_spectrum(CStringFeatures< uint16_t > *str)
virtual const char * get_name() const
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
virtual bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual int32_t get_dim_feature_space() const
virtual CFeatures * duplicate() const
Features that support dot products among other operations.
EFeatureClass
shogun feature class
virtual ~CExplicitSpecFeatures()
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 int32_t get_num_vectors() const
Features that compute the Spectrum Kernel feature space explicitly.
virtual EFeatureType get_feature_type() const
EFeatureType
shogun feature type
virtual void free_feature_iterator(void *iterator)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
virtual int32_t get_nnz_features_for_vector(int32_t num)
virtual EFeatureClass get_feature_class() const
virtual void * get_feature_iterator(int32_t vector_index)