CCombinedDotFeatures类参考


详细描述

Features that allow stacking of a number of DotFeatures.

They transparently provide all the operations of DotFeatures, i.e.

\[r = {\bf x} \cdot {\bf x'}\]

\[r = {\bf x} \cdot {\bf z}\]

\[{\bf z'} = \alpha {\bf x} + {\bf z}\]

在文件CombinedDotFeatures.h43行定义。

继承图,类CCombinedDotFeatures
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CCombinedDotFeatures ()
 CCombinedDotFeatures (const CCombinedDotFeatures &orig)
virtual ~CCombinedDotFeatures ()
virtual int32_t get_num_vectors ()
virtual int32_t get_dim_feature_space ()
virtual float64_t dot (int32_t vec_idx1, int32_t vec_idx2)
virtual float64_t dense_dot (int32_t vec_idx1, const float64_t *vec2, int32_t vec2_len)
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 EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual int32_t get_size ()
virtual CFeaturesduplicate () const
void list_feature_objs ()
CDotFeaturesget_first_feature_obj ()
CDotFeaturesget_first_feature_obj (CListElement< CDotFeatures * > *&current)
CDotFeaturesget_next_feature_obj ()
CDotFeaturesget_next_feature_obj (CListElement< CDotFeatures * > *&current)
CDotFeaturesget_last_feature_obj ()
bool insert_feature_obj (CDotFeatures *obj)
bool append_feature_obj (CDotFeatures *obj)
bool delete_feature_obj ()
int32_t get_num_feature_obj ()
virtual void get_subfeature_weights (float64_t **weights, int32_t *num_weights)
virtual void set_subfeature_weights (float64_t *weights, int32_t num_weights)
virtual const char * get_name () const

保护成员

void update_dim_feature_space_and_num_vec ()

保护属性

CList< CDotFeatures * > * feature_list
int32_t num_vectors
 total number of vectors
int32_t num_dimensions
 total number of dimensions

构造及析构函数文档

constructor

在文件CombinedDotFeatures.cpp17行定义。

copy constructor

在文件CombinedDotFeatures.cpp23行定义。

~CCombinedDotFeatures (  )  [virtual]

destructor

在文件CombinedDotFeatures.cpp34行定义。


成员函数文档

void add_to_dense_vec ( float64_t  alpha,
int32_t  vec_idx1,
float64_t vec2,
int32_t  vec2_len,
bool  abs_val = false 
) [virtual]

add vector 1 multiplied with alpha to dense vector2

参数:
alpha scalar alpha
vec_idx1 index of first vector
vec2 pointer to real valued vector
vec2_len length of real valued vector
abs_val if true add the absolute value

实现了CDotFeatures

在文件CombinedDotFeatures.cpp119行定义。

bool append_feature_obj ( CDotFeatures obj  ) 

append feature object

参数:
obj feature object to append
返回:
if appending was successful

在文件CombinedDotFeatures.h210行定义。

bool delete_feature_obj (  ) 

delete feature object

返回:
if deleting was successful

在文件CombinedDotFeatures.h223行定义。

float64_t dense_dot ( int32_t  vec_idx1,
const float64_t vec2,
int32_t  vec2_len 
) [virtual]

compute dot product between vector1 and a dense vector

参数:
vec_idx1 index of first vector
vec2 pointer to real valued vector
vec2_len length of real valued vector

实现了CDotFeatures

在文件CombinedDotFeatures.cpp100行定义。

float64_t dot ( int32_t  vec_idx1,
int32_t  vec_idx2 
) [virtual]

compute dot product between vector1 and vector2, appointed by their indices

参数:
vec_idx1 index of first vector
vec_idx2 index of second vector

实现了CDotFeatures

在文件CombinedDotFeatures.cpp84行定义。

CFeatures * duplicate (  )  const [virtual]

duplicate feature object

返回:
feature object

实现了CFeatures

在文件CombinedDotFeatures.cpp29行定义。

virtual int32_t get_dim_feature_space (  )  [virtual]

obtain the dimensionality of the feature space

返回:
dimensionality

实现了CDotFeatures

在文件CombinedDotFeatures.h64行定义。

virtual EFeatureClass get_feature_class (  )  [virtual]

get feature class

返回:
feature class

实现了CFeatures

在文件CombinedDotFeatures.h115行定义。

virtual EFeatureType get_feature_type (  )  [virtual]

get feature type

返回:
templated feature type

实现了CFeatures

在文件CombinedDotFeatures.h106行定义。

CDotFeatures* get_first_feature_obj ( CListElement< CDotFeatures * > *&  current  ) 

get first feature object

参数:
current list of features
返回:
first feature object

在文件CombinedDotFeatures.h150行定义。

CDotFeatures* get_first_feature_obj (  ) 

get first feature object

返回:
first feature object

在文件CombinedDotFeatures.h138行定义。

CDotFeatures* get_last_feature_obj (  ) 

get last feature object

返回:
last feature object

在文件CombinedDotFeatures.h184行定义。

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject

在文件CombinedDotFeatures.h261行定义。

CDotFeatures* get_next_feature_obj ( CListElement< CDotFeatures * > *&  current  ) 

get next feature object

参数:
current list of features
返回:
next feature object

在文件CombinedDotFeatures.h173行定义。

CDotFeatures* get_next_feature_obj (  ) 

get next feature object

返回:
next feature object

在文件CombinedDotFeatures.h161行定义。

int32_t get_nnz_features_for_vector ( int32_t  num  )  [virtual]

get number of non-zero features in vector

参数:
num which vector
返回:
number of non-zero features in vector

实现了CDotFeatures

在文件CombinedDotFeatures.cpp135行定义。

int32_t get_num_feature_obj (  ) 

get number of feature objects

返回:
number of feature objects

在文件CombinedDotFeatures.h240行定义。

virtual int32_t get_num_vectors (  )  [virtual]

get number of examples/vectors

abstract base method

返回:
number of examples/vectors

实现了CFeatures

在文件CombinedDotFeatures.h55行定义。

virtual int32_t get_size (  )  [virtual]

get memory footprint of one feature

abstract base method

返回:
memory footprint of one feature

实现了CFeatures

在文件CombinedDotFeatures.h120行定义。

void get_subfeature_weights ( float64_t **  weights,
int32_t *  num_weights 
) [virtual]

get subfeature weights

参数:
weights subfeature weights
num_weights where number of weights is stored

在文件CombinedDotFeatures.cpp150行定义。

bool insert_feature_obj ( CDotFeatures obj  ) 

insert feature object

参数:
obj feature object to insert
返回:
if inserting was successful

在文件CombinedDotFeatures.h196行定义。

void list_feature_objs (  ) 

list feature objects

在文件CombinedDotFeatures.cpp39行定义。

void set_subfeature_weights ( float64_t weights,
int32_t  num_weights 
) [virtual]

set subfeature weights

参数:
weights new subfeature weights
num_weights number of subfeature weights

在文件CombinedDotFeatures.cpp168行定义。

void update_dim_feature_space_and_num_vec (  )  [protected]

update total number of dimensions and vectors

在文件CombinedDotFeatures.cpp57行定义。


成员数据文档

feature list

在文件CombinedDotFeatures.h269行定义。

int32_t num_dimensions [protected]

total number of dimensions

在文件CombinedDotFeatures.h274行定义。

int32_t num_vectors [protected]

total number of vectors

在文件CombinedDotFeatures.h272行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation