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

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