13 #ifndef _COMBINEDDOTFEATURES_H___
14 #define _COMBINEDDOTFEATURES_H___
130 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
166 #ifndef DOXYGEN_SHOULD_SKIP_THIS
168 struct combined_feature_iterator
177 int32_t vector_index;
291 float64_t* weights, int32_t num_weights);
294 inline virtual const char*
get_name()
const {
return "CombinedDotFeatures"; }
313 #endif // _DOTFEATURES_H___
virtual int32_t get_size()
CDotFeatures * get_first_feature_obj()
int32_t num_vectors
total number of vectors
CDotFeatures * get_next_feature_obj()
virtual int32_t get_dim_feature_space() const
virtual void dense_dot_range(float64_t *output, int32_t start, int32_t stop, float64_t *alphas, float64_t *vec, int32_t dim, float64_t b)
virtual bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual ~CCombinedDotFeatures()
void update_dim_feature_space_and_num_vec()
CDotFeatures(int32_t size=0)
bool insert_feature_obj(CDotFeatures *obj)
CFeatures(int32_t size=0)
virtual void dense_dot_range_subset(int32_t *sub_index, int32_t num, float64_t *output, float64_t *alphas, float64_t *vec, int32_t dim, float64_t b)
bool delete_feature_obj()
virtual CFeatures * duplicate() const
Features that support dot products among other operations.
bool append_feature_obj(CDotFeatures *obj)
EFeatureClass
shogun feature class
virtual EFeatureClass get_feature_class()
virtual int32_t get_num_vectors() const
int32_t get_num_feature_obj()
virtual const char * get_name() 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 int32_t get_nnz_features_for_vector(int32_t num)
virtual void get_subfeature_weights(float64_t **weights, int32_t *num_weights)
EFeatureType
shogun feature type
virtual void set_subfeature_weights(float64_t *weights, int32_t num_weights)
virtual EFeatureType get_feature_type()
Class ListElement, defines how an element of the the list looks like.
Features that allow stacking of a number of DotFeatures.
virtual void free_feature_iterator(void *iterator)
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
virtual void * get_feature_iterator(int32_t vector_index)
int32_t num_dimensions
total number of dimensions
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
CDotFeatures * get_last_feature_obj()
Class List implements a doubly connected list for low-level-objects.