The Constant Kernel returns a constant for all elements.
A ``kernel'' that simply returns a single constant, i.e.
在文件ConstKernel.h第27行定义。
公有成员 | |
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 | ) |
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.cpp第23行定义。
~CConstKernel | ( | ) | [virtual] |
在文件ConstKernel.cpp第29行定义。
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 |
实现了CKernel。
在文件ConstKernel.h第91行定义。
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
实现了CKernel。
在文件ConstKernel.h第73行定义。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
实现了CKernel。
在文件ConstKernel.h第64行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
重载CKernel。
在文件ConstKernel.cpp第33行定义。
float64_t const_value [protected] |
const value
在文件ConstKernel.h第98行定义。