公有成员 | 保护成员 | 保护属性

CDiagKernel类参考


详细描述

The Diagonal Kernel returns a constant for the diagonal and zero otherwise.

A kernel that returns zero for all non-diagonal elements and a single constant otherwise, i.e. $k({\bf x_i}, {\bf x_j})= \delta_{ij} c$

在文件DiagKernel.h26行定义。

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

所有成员的列表。

公有成员

 CDiagKernel (int32_t size, float64_t diag=1.0)
 CDiagKernel (CFeatures *l, CFeatures *r, float64_t diag=1.0)
virtual ~CDiagKernel ()
virtual EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

保护属性

float64_t diag

构造及析构函数文档

CDiagKernel ( int32_t  size,
float64_t  diag = 1.0 
)

constructor

参数:
size cache size
diag diagonal

在文件DiagKernel.cpp19行定义。

CDiagKernel ( CFeatures l,
CFeatures r,
float64_t  diag = 1.0 
)

constructor

参数:
l features of left-hand side
r features of right-hand side
diag diagonal

在文件DiagKernel.cpp24行定义。

~CDiagKernel (  )  [virtual]

在文件DiagKernel.cpp30行定义。


成员函数文档

virtual float64_t compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object

参数:
idx_a index a
idx_b index b
返回:
computed kernel function at indices a,b

实现了CKernel

在文件DiagKernel.h85行定义。

virtual EFeatureClass get_feature_class (  )  [virtual]

return feature class the kernel can deal with

返回:
feature class ANY

实现了CKernel

在文件DiagKernel.h59行定义。

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

返回:
feature type ANY

实现了CKernel

在文件DiagKernel.h50行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type CUSTOM

实现了CKernel

在文件DiagKernel.h68行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name Custom

实现了CSGObject

在文件DiagKernel.h74行定义。


成员数据文档

float64_t diag [protected]

diagonal

在文件DiagKernel.h95行定义。


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

SHOGUN Machine Learning Toolbox - Documentation