Generalized T-Student kernel.
Formally described as
with degree=1 by default
Definition at line 35 of file TStudentKernel.h.
Public Member Functions | |
CTStudentKernel () | |
CTStudentKernel (int32_t cache, float64_t d, CDistance *dist) | |
CTStudentKernel (CFeatures *l, CFeatures *r, float64_t d, CDistance *dist) | |
virtual | ~CTStudentKernel () |
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 | get_degree () |
void | set_degree (float64_t value) |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
CDistance * | distance |
distance to be used | |
float64_t | degree |
degree parameter of kernel |
CTStudentKernel | ( | ) |
default constructor
Definition at line 23 of file TStudentKernel.cpp.
CTStudentKernel | ( | int32_t | cache, | |
float64_t | d, | |||
CDistance * | dist | |||
) |
constructor
cache | size of cache | |
d | kernel parameter degree | |
dist | distance to be used |
Definition at line 28 of file TStudentKernel.cpp.
CTStudentKernel | ( | CFeatures * | l, | |
CFeatures * | r, | |||
float64_t | d, | |||
CDistance * | dist | |||
) |
constructor
l | features left-side | |
r | features right-side | |
d | kernel parameter degree | |
dist | distance to be used |
Definition at line 36 of file TStudentKernel.cpp.
~CTStudentKernel | ( | ) | [virtual] |
Definition at line 45 of file TStudentKernel.cpp.
float64_t compute | ( | int32_t | idx_a, | |
int32_t | idx_b | |||
) | [protected, virtual] |
compute kernel for specific feature vectors corresponding to [idx_a] of left-side and [idx_b] of right-side
idx_a | left-side index | |
idx_b | right-side index |
Implements CKernel.
Definition at line 59 of file TStudentKernel.cpp.
float64_t get_degree | ( | ) |
getter for degree parameter
Definition at line 88 of file TStudentKernel.h.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
initialize kernel with features
l | features left-side | |
r | features right-side |
Reimplemented from CKernel.
Definition at line 51 of file TStudentKernel.cpp.
void set_degree | ( | float64_t | value | ) |
setter for degree parameter
value | kernel parameter degree |
Definition at line 93 of file TStudentKernel.h.
degree parameter of kernel
Definition at line 104 of file TStudentKernel.h.
distance to be used
Definition at line 101 of file TStudentKernel.h.