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.
在文件DiagKernel.h第26行定义。
公有成员 | |
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 |
||
) |
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.cpp第24行定义。
~CDiagKernel | ( | ) | [virtual] |
在文件DiagKernel.cpp第30行定义。
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 |
实现了CKernel。
在文件DiagKernel.h第85行定义。
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
实现了CKernel。
在文件DiagKernel.h第59行定义。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
diagonal
在文件DiagKernel.h第95行定义。