13 #ifndef _COMBINEDDOTFEATURES_H___ 14 #define _COMBINEDDOTFEATURES_H___ 16 #include <shogun/lib/config.h> 25 class CDynamicObjectArray;
131 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
158 #ifndef DOXYGEN_SHOULD_SKIP_THIS 160 struct combined_feature_iterator
167 int32_t vector_index;
258 virtual const char*
get_name()
const {
return "CombinedDotFeatures"; }
279 #endif // _DOTFEATURES_H___ int32_t iterator_idx
idx for iterator
CDynamicObjectArray * feature_array
int32_t num_vectors
total number of vectors
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()
bool insert_feature_obj(CDotFeatures *obj, int32_t idx)
virtual void set_subfeature_weights(SGVector< float64_t > weights)
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(int32_t idx)
virtual int32_t get_dim_feature_space() const
Features that support dot products among other operations.
bool append_feature_obj(CDotFeatures *obj)
EFeatureClass
shogun feature class
virtual SGVector< float64_t > get_subfeature_weights()
int32_t get_num_feature_obj()
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
CDotFeatures * get_feature_obj(int32_t idx)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual int32_t get_nnz_features_for_vector(int32_t num)
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.
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 const char * get_name() const
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)
virtual EFeatureClass get_feature_class() const
virtual CFeatures * duplicate() const
virtual EFeatureType get_feature_type() const