The Constant Kernel returns a constant for all elements.
A ``kernel'' that simply returns a single constant, i.e.
Definition at line 27 of file ConstKernel.h.

Public Member Functions | |
| CConstKernel () | |
| CConstKernel (float64_t c) | |
| CConstKernel (CFeatures *l, CFeatures *r, float64_t c) | |
| virtual | ~CConstKernel () |
| 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 | |
| virtual float64_t | compute (int32_t row, int32_t col) |
Protected Attributes | |
| float64_t | const_value |
| CConstKernel | ( | ) |
default constructor
Definition at line 21 of file ConstKernel.cpp.
| CConstKernel | ( | float64_t | c | ) |
| CConstKernel | ( | CFeatures * | l, | |
| CFeatures * | r, | |||
| float64_t | c | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| c | constant c |
Definition at line 34 of file ConstKernel.cpp.
| ~CConstKernel | ( | ) | [virtual] |
Definition at line 42 of file ConstKernel.cpp.
| virtual float64_t compute | ( | int32_t | row, | |
| int32_t | col | |||
| ) | [protected, virtual] |
compute kernel function for features a and b
| row | dummy row | |
| col | dummy col |
Implements CKernel.
Definition at line 94 of file ConstKernel.h.
| virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Implements CKernel.
Definition at line 76 of file ConstKernel.h.
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
Implements CKernel.
Definition at line 67 of file ConstKernel.h.
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 61 of file ConstKernel.h.
| virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
Implements CSGObject.
Definition at line 85 of file ConstKernel.h.
initialize kernel
| l | features of left-hand side | |
| r | features of right-hand side |
Reimplemented from CKernel.
Definition at line 46 of file ConstKernel.cpp.
float64_t const_value [protected] |
const value
Definition at line 104 of file ConstKernel.h.