56 SG_INFO(
"BEGIN COMBINED FEATURES LIST - ")
66 SG_INFO(
"END COMBINED FEATURES LIST - ")
84 SG_INFO(
"not compatible, combfeat\n")
94 SG_DEBUG(
"features are compatible\n")
133 SG_ERROR(
"Number of feature vectors does not match (expected %d, "
148 SG_ERROR(
"Number of feature vectors does not match (expected %d, "
169 void CCombinedFeatures::init()
172 "Number of vectors.");
174 "feature_array",
"Feature array.");
181 SG_WARNING(
"Heiko Strathmann: FIXME, unefficient!\n")
188 SG_ERROR(
"%s::create_merged_copy(): Features are of different type!\n",
196 SG_ERROR(
"%s::create_merged_copy(): Could not cast object of %s to "
202 SG_ERROR(
"%s::create_merged_copy(): Only possible if both instances "
203 "have the same number of sub-feature-objects\n",
get_name());
235 processed->
add(current);
236 SG_DEBUG(
"adding subset to %s at %p\n",
262 processed->
add(current);
263 SG_DEBUG(
"removing subset from %s at %p\n",
289 processed->
add(current);
290 SG_DEBUG(
"removing all subsets from %s at %p\n",
321 processed->
add(current, new_element);
virtual const char * get_name() const =0
bool contains(const T &element)
CSubsetStack * m_subset_stack
virtual EFeatureType get_feature_type() const
virtual void add_subset(SGVector< index_t > subset)
int32_t get_num_feature_obj()
T get_element(const K &key)
bool insert_element(CSGObject *e, int32_t index)
virtual int32_t get_num_vectors() const =0
virtual void remove_all_subsets()
CDynamicObjectArray * feature_array
int32_t get_num_elements() const
bool contains(const K &key)
virtual CFeatures * copy_subset(SGVector< index_t > indices)
virtual CFeatures * create_merged_copy(CList *others)
virtual void subset_changed_post()
int32_t add(const K &key, const T &data)
void add(bool *param, const char *name, const char *description="")
bool check_feature_compatibility(CFeatures *f) const
void list_feature_obj() const
virtual void add_subset(SGVector< index_t > subset)
Class SGObject is the base class of all shogun objects.
the class CSet, a set based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table ...
virtual void remove_all_subsets()
virtual ~CCombinedFeatures()
virtual int32_t get_num_vectors() const
virtual EFeatureClass get_feature_class() const
virtual CFeatures * duplicate() const
CFeatures * get_feature_obj(int32_t idx)
CFeatures * get_last_feature_obj()
virtual EFeatureClass get_feature_class() const =0
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
CFeatures * create_merged_copy(CFeatures *other)
bool check_feature_obj_compatibility(CCombinedFeatures *comb_feat)
bool insert_feature_obj(CFeatures *obj, int32_t idx)
all of classes and functions are contained in the shogun namespace
virtual void remove_subset()
virtual CFeatures * copy_subset(SGVector< index_t > indices)
The class Features is the base class of all feature objects.
CFeatures * get_first_feature_obj()
void add(const T &element)
CSGObject * get_element(int32_t index) const
virtual const char * get_name() const
virtual void remove_subset()
void push_back(CSGObject *e)
bool delete_element(int32_t idx)
The class CombinedFeatures is used to combine a number of of feature objects into a single CombinedFe...
virtual void remove_all_subsets()
bool delete_feature_obj(int32_t idx)
virtual void remove_subset()
virtual void add_subset(SGVector< index_t > subset)
virtual EFeatureType get_feature_type() const =0
bool append_feature_obj(CFeatures *obj)
the class CMap, a map based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table ...