SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
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 ()
 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 ( void  )

default constructor

在文件ConstKernel.cpp21行定义。

constructor

参数:
cconstant c

在文件ConstKernel.cpp27行定义。

CConstKernel ( CFeatures l,
CFeatures r,
float64_t  c 
)

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side
cconstant c

在文件ConstKernel.cpp34行定义。

~CConstKernel ( ) [virtual]

在文件ConstKernel.cpp42行定义。


成员函数文档

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

compute kernel function for features a and b

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

实现了CKernel

在文件ConstKernel.h94行定义。

virtual EFeatureClass get_feature_class ( ) [virtual]

return feature class the kernel can deal with

返回:
feature class ANY

实现了CKernel

在文件ConstKernel.h76行定义。

virtual EFeatureType get_feature_type ( ) [virtual]

return feature type the kernel can deal with

返回:
feature type ANY

实现了CKernel

在文件ConstKernel.h67行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type CONST

实现了CKernel

在文件ConstKernel.h61行定义。

virtual const char* get_name ( void  ) const [virtual]

return the kernel's name

返回:
name Const

实现了CSGObject

在文件ConstKernel.h85行定义。

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

initialize kernel

参数:
lfeatures of left-hand side
rfeatures of right-hand side
返回:
if initializing was successful

重载CKernel

在文件ConstKernel.cpp46行定义。


成员数据文档

float64_t const_value [protected]

const value

在文件ConstKernel.h104行定义。


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

SHOGUN Machine Learning Toolbox - Documentation