SHOGUN
v1.1.0
|
Rational Quadratic kernel.
Formally described as
Definition at line 35 of file RationalQuadraticKernel.h.
Public Member Functions | |
CRationalQuadraticKernel () | |
CRationalQuadraticKernel (int32_t cache, float64_t coef, CDistance *dist) | |
CRationalQuadraticKernel (CFeatures *l, CFeatures *r, float64_t c, CDistance *dist) | |
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 |
virtual const float64_t | get_coef () const |
void | set_coef (float64_t coef) |
virtual | ~CRationalQuadraticKernel () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
CDistance * | m_distance |
distance to be used | |
float64_t | m_coef |
coefficient parameter of kernel |
default constructor
Definition at line 16 of file RationalQuadraticKernel.cpp.
CRationalQuadraticKernel | ( | int32_t | cache, |
float64_t | coef, | ||
CDistance * | dist | ||
) |
constructor
cache | size of cache |
coef | kernel parameter coefficient |
dist | distance to be used |
Definition at line 21 of file RationalQuadraticKernel.cpp.
CRationalQuadraticKernel | ( | CFeatures * | l, |
CFeatures * | r, | ||
float64_t | c, | ||
CDistance * | dist | ||
) |
constructor
l | features left-side |
r | features right-side |
c | kernel parameter coefficient |
dist | distance to be used |
Definition at line 29 of file RationalQuadraticKernel.cpp.
~CRationalQuadraticKernel | ( | ) | [virtual] |
Definition at line 38 of file RationalQuadraticKernel.cpp.
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 52 of file RationalQuadraticKernel.cpp.
Definition at line 86 of file RationalQuadraticKernel.h.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
Implements CKernel.
Definition at line 76 of file RationalQuadraticKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
Implements CKernel.
Definition at line 71 of file RationalQuadraticKernel.h.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
Implements CSGObject.
Definition at line 81 of file RationalQuadraticKernel.h.
initialize kernel with features
l | features left-side |
r | features right-side |
Reimplemented from CKernel.
Definition at line 44 of file RationalQuadraticKernel.cpp.
setter for degree parameter
coef | coefficient parameter of kernel |
Definition at line 91 of file RationalQuadraticKernel.h.
coefficient parameter of kernel
Definition at line 113 of file RationalQuadraticKernel.h.
CDistance* m_distance [protected] |
distance to be used
Definition at line 110 of file RationalQuadraticKernel.h.