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

CConstKernel类参考


详细描述

The Constant Kernel returns a constant for all elements.

A ``kernel'' that simply returns a single constant, i.e. $k({\bf x}, {\bf x'})= c$

在文件ConstKernel.h27行定义。

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

所有成员的列表。

公有成员

 CConstKernel (float64_t c)
 CConstKernel (CFeatures *l, CFeatures *r, float64_t c)
virtual ~CConstKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EKernelType get_kernel_type ()
virtual EFeatureType get_feature_type ()
virtual EFeatureClass get_feature_class ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t row, int32_t col)

保护属性

float64_t const_value

构造及析构函数文档

CConstKernel ( float64_t  c  ) 

constructor

参数:
c constant c

在文件ConstKernel.cpp18行定义。

CConstKernel ( CFeatures l,
CFeatures r,
float64_t  c 
)

constructor

参数:
l features of left-hand side
r features of right-hand side
c constant c

在文件ConstKernel.cpp23行定义。

~CConstKernel (  )  [virtual]

在文件ConstKernel.cpp29行定义。


成员函数文档

virtual float64_t compute ( int32_t  row,
int32_t  col 
) [protected, virtual]

compute kernel function for features a and b

参数:
row dummy row
col dummy col
返回:
computed kernel function (const value)

实现了CKernel

在文件ConstKernel.h91行定义。

virtual EFeatureClass get_feature_class (  )  [virtual]

return feature class the kernel can deal with

返回:
feature class ANY

实现了CKernel

在文件ConstKernel.h73行定义。

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

返回:
feature type ANY

实现了CKernel

在文件ConstKernel.h64行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type CONST

实现了CKernel

在文件ConstKernel.h58行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name Const

实现了CSGObject

在文件ConstKernel.h82行定义。

bool init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel

参数:
l features of left-hand side
r features of right-hand side
返回:
if initializing was successful

重载CKernel

在文件ConstKernel.cpp33行定义。


成员数据文档

float64_t const_value [protected]

const value

在文件ConstKernel.h98行定义。


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

SHOGUN Machine Learning Toolbox - Documentation