36 return indexfeature_dup;
57 for (int32_t i=0; i<sub_feature_index.
vlen; ++i)
63 return sub_feature_index;
81 void CIndexFeatures::init()
virtual ~CIndexFeatures()
CSubsetStack * m_subset_stack
void set_feature_index(SGVector< index_t > feature_index)
virtual EFeatureType get_feature_type() const
virtual EFeatureClass get_feature_class() const
virtual int32_t get_num_vectors() const
The class IndexFeatures implements features that contain the index of the features. This features used in the CCustomKernel::init to make the subset of the kernel matrix. Initial CIndexFeature of row_idx and col_idx, pass them to the CCustomKernel::init(row_idx, col_idx), then use CCustomKernel::get_kernel_matrix() will get the sub kernel matrix specified by the row_idx and col_idx.
void free_feature_index()
virtual CFeatures * duplicate() const
SGVector< index_t > m_feature_index
EFeatureClass
shogun feature class
class to add subset support to another class. A CSubsetStackStack instance should be added and wrappe...
SGVector< index_t > get_feature_index()
virtual void remove_all_subsets()
index_t subset_idx_conversion(index_t idx) const
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.
SGVector< T > clone() const
virtual bool has_subsets() const