
Public Member Functions | |
| CConstKernel (float64_t c) | |
| CConstKernel (CFeatures *l, CFeatures *r, float64_t c) | |
| virtual | ~CConstKernel () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual bool | load_init (FILE *src) |
| virtual bool | save_init (FILE *dest) |
| virtual EKernelType | get_kernel_type () |
| virtual EFeatureType | get_feature_type () |
| virtual EFeatureClass | get_feature_class () |
| virtual const char * | get_name () |
Protected Member Functions | |
| virtual float64_t | compute (int32_t row, int32_t col) |
Protected Attributes | |
| float64_t | const_value |
A ``kernel'' that simply returns a single constant, i.e.
Definition at line 25 of file ConstKernel.h.
| CConstKernel::CConstKernel | ( | float64_t | c | ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| c | constant c |
Definition at line 21 of file ConstKernel.cpp.
| CConstKernel::~CConstKernel | ( | ) | [virtual] |
Definition at line 27 of file ConstKernel.cpp.
| virtual float64_t CConstKernel::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 103 of file ConstKernel.h.
| virtual EFeatureClass CConstKernel::get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Implements CKernel.
Definition at line 85 of file ConstKernel.h.
| virtual EFeatureType CConstKernel::get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
Implements CKernel.
Definition at line 76 of file ConstKernel.h.
| virtual EKernelType CConstKernel::get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 70 of file ConstKernel.h.
| virtual const char* CConstKernel::get_name | ( | ) | [virtual] |
return the kernel's name
Implements CKernel.
Definition at line 94 of file ConstKernel.h.
initialize kernel
| l | features of left-hand side | |
| r | features of right-hand side |
Reimplemented from CKernel.
Definition at line 31 of file ConstKernel.cpp.
| bool CConstKernel::load_init | ( | FILE * | src | ) | [virtual] |
load kernel init_data
| src | file to load from |
Implements CKernel.
Definition at line 37 of file ConstKernel.cpp.
| bool CConstKernel::save_init | ( | FILE * | dest | ) | [virtual] |
save kernel init_data
| dest | file to save to |
Implements CKernel.
Definition at line 42 of file ConstKernel.cpp.
float64_t CConstKernel::const_value [protected] |
const value
Definition at line 110 of file ConstKernel.h.