11 #ifndef _SNPFEATURES_H___
12 #define _SNPFEATURES_H___
22 template <
class ST>
class CStringFeatures;
82 float64_t* vec2, int32_t vec2_len,
bool abs_val=
false);
184 virtual const char*
get_name()
const {
return "SNPFeatures"; }
202 void find_minor_major_strings(uint8_t* minor, uint8_t* major);
224 #endif // _SNPFEATURES_H___
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 void free_feature_iterator(void *iterator)
virtual int32_t get_num_vectors() const
float64_t get_normalization_const()
virtual bool get_next_feature(int32_t &index, float64_t &value, void *iterator)
virtual int32_t get_nnz_features_for_vector(int32_t num)
void set_major_base_string(const char *str)
void obtain_base_strings(CSNPFeatures *snp=NULL)
virtual int32_t get_dim_feature_space() const
char * get_major_base_string()
Features that support dot products among other operations.
virtual void * get_feature_iterator(int32_t vector_index)
EFeatureClass
shogun feature class
virtual EFeatureType get_feature_type() const
char * get_minor_base_string()
virtual const char * get_name() const
virtual CFeatures * duplicate() const
EFeatureType
shogun feature type
CStringFeatures< uint8_t > * strings
float64_t normalization_const
Features that compute the Weighted Degreee Kernel feature space explicitly.
all of classes and functions are contained in the shogun namespace
void set_minor_base_string(const char *str)
virtual float64_t dense_dot(int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
virtual SGMatrix< float64_t > get_histogram(bool normalize=true)
The class Features is the base class of all feature objects.
void set_normalization_const(float64_t n=0)
static SGMatrix< float64_t > get_2x3_table(CSNPFeatures *pos, CSNPFeatures *neg)
virtual EFeatureClass get_feature_class() const
virtual float64_t dot(int32_t vec_idx1, CDotFeatures *df, int32_t vec_idx2)