InverseMultiQuadricKernel.
Definition at line 32 of file InverseMultiQuadricKernel.h.
Public Member Functions | |
CInverseMultiQuadricKernel () | |
CInverseMultiQuadricKernel (int32_t cache, float64_t coef, CDistance *dist) | |
CInverseMultiQuadricKernel (CFeatures *l, CFeatures *r, float64_t coef, 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 |
float64_t | get_coef () |
void | set_coef (float64_t value) |
virtual | ~CInverseMultiQuadricKernel () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
virtual void | load_serializable_post (void) throw (ShogunException) |
Protected Attributes | |
CDistance * | distance |
float64_t | coef |
default constructor
Definition at line 17 of file InverseMultiQuadricKernel.cpp.
CInverseMultiQuadricKernel | ( | int32_t | cache, | |
float64_t | coef, | |||
CDistance * | dist | |||
) |
constructor
cache | size of cache | |
coef | kernel parameter coef | |
dist | distance to be used |
Definition at line 22 of file InverseMultiQuadricKernel.cpp.
CInverseMultiQuadricKernel | ( | CFeatures * | l, | |
CFeatures * | r, | |||
float64_t | coef, | |||
CDistance * | dist | |||
) |
constructor
l | features left-side | |
r | features right-side | |
coef | kernel parameter coef | |
dist | distance to be used |
Definition at line 29 of file InverseMultiQuadricKernel.cpp.
~CInverseMultiQuadricKernel | ( | ) | [virtual] |
Definition at line 37 of file InverseMultiQuadricKernel.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 61 of file InverseMultiQuadricKernel.cpp.
float64_t get_coef | ( | ) |
getter for coef parameter
Definition at line 83 of file InverseMultiQuadricKernel.h.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
Implements CKernel.
Definition at line 73 of file InverseMultiQuadricKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
Implements CKernel.
Definition at line 68 of file InverseMultiQuadricKernel.h.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
Implements CSGObject.
Definition at line 78 of file InverseMultiQuadricKernel.h.
initialize kernel with features
l | features left-side | |
r | features right-side |
Reimplemented from CKernel.
Definition at line 43 of file InverseMultiQuadricKernel.cpp.
void load_serializable_post | ( | void | ) | throw (ShogunException) [protected, virtual] |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.
ShogunException | Will be thrown if an error occurres. |
Reimplemented from CKernel.
Definition at line 50 of file InverseMultiQuadricKernel.cpp.
void set_coef | ( | float64_t | value | ) |
setter for coef parameter
value | kernel parameter coefficient |
Definition at line 88 of file InverseMultiQuadricKernel.h.
theta parameter of kernel - coefficient
Definition at line 100 of file InverseMultiQuadricKernel.h.
distance to be used
Definition at line 96 of file InverseMultiQuadricKernel.h.