The Distance kernel takes a distance as input.
It turns a distance into something kernel like by computing
在文件DistanceKernel.h第33行定义。

公有成员 | |
| CDistanceKernel (int32_t cache, float64_t width, CDistance *dist) | |
| CDistanceKernel (CFeatures *l, CFeatures *r, float64_t width, CDistance *dist) | |
| virtual | ~CDistanceKernel () |
| 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 |
保护成员 | |
| float64_t | compute (int32_t idx_a, int32_t idx_b) |
| CDistanceKernel | ( | int32_t | cache, | |
| float64_t | width, | |||
| CDistance * | dist | |||
| ) |
| CDistanceKernel | ( | CFeatures * | l, | |
| CFeatures * | r, | |||
| float64_t | width, | |||
| CDistance * | dist | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| width | width | |
| dist | distance |
在文件DistanceKernel.cpp第27行定义。
| ~CDistanceKernel | ( | ) | [virtual] |
在文件DistanceKernel.cpp第36行定义。
| 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。
在文件DistanceKernel.cpp第52行定义。
| virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
实现了CKernel。
在文件DistanceKernel.h第79行定义。
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
实现了CKernel。
在文件DistanceKernel.h第73行定义。
| 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。
在文件DistanceKernel.cpp第44行定义。