|
SHOGUN v0.9.0
|
The Kernel distance takes a distance as input.
It turns a kernel into something distance like by computing
在文件KernelDistance.h第33行定义。

公有成员 | |
| CKernelDistance (void) | |
| CKernelDistance (float64_t width, CKernel *k) | |
| CKernelDistance (CFeatures *l, CFeatures *r, float64_t width, CKernel *k) | |
| virtual | ~CKernelDistance () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual EDistanceType | get_distance_type () |
| virtual EFeatureType | get_feature_type () |
| virtual EFeatureClass | get_feature_class () |
| virtual const char * | get_name () const |
| virtual void | cleanup () |
保护成员 | |
| float64_t | compute (int32_t idx_a, int32_t idx_b) |
| CKernelDistance | ( | void | ) |
default constructor
在文件KernelDistance.cpp第20行定义。
| CKernelDistance | ( | float64_t | width, |
| CKernel * | k | ||
| ) |
| CKernelDistance | ( | CFeatures * | l, |
| CFeatures * | r, | ||
| float64_t | width, | ||
| CKernel * | k | ||
| ) |
constructor
| l | features of left-hand side |
| r | features of right-hand side |
| width | width |
| dist | distance |
在文件KernelDistance.cpp第36行定义。
| ~CKernelDistance | ( | ) | [virtual] |
在文件KernelDistance.cpp第50行定义。
| virtual void cleanup | ( | ) | [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 |
实现了CDistance。
在文件KernelDistance.cpp第65行定义。
| virtual EDistanceType get_distance_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CDistance。
在文件KernelDistance.h第71行定义。
| virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the distance can deal with
实现了CDistance。
在文件KernelDistance.h第82行定义。
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the distance can deal with
实现了CDistance。
在文件KernelDistance.h第76行定义。
| virtual const char* get_name | ( | void | ) | const [virtual] |
initialize kernel
| l | features of left-hand side |
| r | features of right-hand side |
重载CDistance。
在文件KernelDistance.cpp第58行定义。