The Distance kernel takes a distance as input.
It turns a distance into something kernel like by computing
Definition at line 33 of file DistanceKernel.h.

Public Member Functions | |
| 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 |
Protected Member Functions | |
| float64_t | compute (int32_t idx_a, int32_t idx_b) |
| CDistanceKernel | ( | void | ) |
default constructor
Definition at line 20 of file DistanceKernel.cpp.
| CDistanceKernel | ( | int32_t | cache, | |
| float64_t | width, | |||
| CDistance * | dist | |||
| ) |
constructor
| cache | cache size | |
| width | width | |
| dist | distance |
Definition at line 26 of file DistanceKernel.cpp.
| 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 |
Definition at line 33 of file DistanceKernel.cpp.
| ~CDistanceKernel | ( | ) | [virtual] |
Definition at line 42 of file DistanceKernel.cpp.
| 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 |
Implements CKernel.
Definition at line 58 of file DistanceKernel.cpp.
| virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Implements CKernel.
Definition at line 82 of file DistanceKernel.h.
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
Implements CKernel.
Definition at line 76 of file DistanceKernel.h.
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 71 of file DistanceKernel.h.
| virtual const char* get_name | ( | void | ) | const [virtual] |
return the kernel's name
Implements CSGObject.
Definition at line 88 of file DistanceKernel.h.
initialize kernel
| l | features of left-hand side | |
| r | features of right-hand side |
Reimplemented from CKernel.
Definition at line 50 of file DistanceKernel.cpp.