SHOGUN v0.9.0
|
The Distance kernel takes a distance as input.
It turns a distance into something kernel like by computing
在文件DistanceKernel.h第33行定义。
公有成员 | |
CDistanceKernel (void) | |
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 | ( | void | ) |
default constructor
在文件DistanceKernel.cpp第20行定义。
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第33行定义。
~CDistanceKernel | ( | ) | [virtual] |
在文件DistanceKernel.cpp第42行定义。
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第58行定义。
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
实现了CKernel。
在文件DistanceKernel.h第82行定义。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
实现了CKernel。
在文件DistanceKernel.h第76行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
重载CKernel。
在文件DistanceKernel.cpp第50行定义。