19 SG_UNSTABLE(
"CExplicitSpecFeatures::CExplicitSpecFeatures()",
45 num_strings(orig.num_strings), alphabet_size(orig.alphabet_size), spec_size(orig.spec_size)
85 result+=vec1[i]*vec2[i];
104 vec2[i]+=alpha*vec1[i];
121 for (int32_t j=0; j<len; j++)
SGVector< ST > get_feature_vector(int32_t num)
void delete_kmer_spectrum()
void obtain_kmer_spectrum(CStringFeatures< uint16_t > *str)
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 int32_t get_num_vectors() const
#define SG_NOTIMPLEMENTED
virtual CFeatures * duplicate() const
void free_feature_vector(ST *feat_vec, int32_t num, bool dofree)
Features that support dot products among other operations.
EFeatureClass
shogun feature class
floatmax_t get_num_symbols()
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 EFeatureClass get_feature_class() const =0
virtual int32_t get_num_vectors() const
static float64_t dot(const bool *v1, const bool *v2, int32_t n)
Compute dot product between v1 and v2 (blas optimized)
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)
static float32_t sqrt(float32_t x)
virtual int32_t get_nnz_features_for_vector(int32_t num)
#define SG_UNSTABLE(func,...)
virtual EFeatureType get_feature_type() const =0
virtual EFeatureClass get_feature_class() const
virtual void * get_feature_iterator(int32_t vector_index)