Definition at line 11 of file WeightedDegreeRBFKernel.h.
Public Member Functions | |
CWeightedDegreeRBFKernel () | |
CWeightedDegreeRBFKernel (int32_t size, float64_t width, int32_t degree, int32_t nof_properties) | |
CWeightedDegreeRBFKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, float64_t width, int32_t degree, int32_t nof_properties, int32_t size=10) | |
virtual | ~CWeightedDegreeRBFKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
bool | set_degree (int32_t deg) |
int32_t | get_degree () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
bool | init_wd_weights () |
Protected Attributes | |
float64_t | width |
int32_t | degree |
int32_t | nof_properties |
float64_t * | weights |
default constructor
Definition at line 24 of file WeightedDegreeRBFKernel.cpp.
CWeightedDegreeRBFKernel | ( | int32_t | size, | |
float64_t | width, | |||
int32_t | degree, | |||
int32_t | nof_properties | |||
) |
constructor
size | cache size | |
width | width | |
degree | degree | |
nof_properties | number of properties per amino acid |
Definition at line 30 of file WeightedDegreeRBFKernel.cpp.
CWeightedDegreeRBFKernel | ( | CSimpleFeatures< float64_t > * | l, | |
CSimpleFeatures< float64_t > * | r, | |||
float64_t | width, | |||
int32_t | degree, | |||
int32_t | nof_properties, | |||
int32_t | size = 10 | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side | |
width | width | |
degree | degree | |
nof_properties | number of properties per amino acid | |
size | cache size |
Definition at line 36 of file WeightedDegreeRBFKernel.cpp.
~CWeightedDegreeRBFKernel | ( | ) | [virtual] |
Definition at line 44 of file WeightedDegreeRBFKernel.cpp.
float64_t compute | ( | int32_t | idx_a, | |
int32_t | idx_b | |||
) | [protected, virtual] |
compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
idx_a | index a | |
idx_b | index b |
Implements CKernel.
Definition at line 83 of file WeightedDegreeRBFKernel.cpp.
int32_t get_degree | ( | ) |
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 55 of file WeightedDegreeRBFKernel.h.
virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
Implements CSGObject.
Definition at line 61 of file WeightedDegreeRBFKernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CSimpleKernel< float64_t >.
Definition at line 50 of file WeightedDegreeRBFKernel.cpp.
bool init_wd_weights | ( | ) | [protected] |
init degree weights
Definition at line 57 of file WeightedDegreeRBFKernel.cpp.
bool set_degree | ( | int32_t | deg | ) |
set degree
deg | new degree |
Definition at line 70 of file WeightedDegreeRBFKernel.h.
int32_t degree [protected] |
degree
Definition at line 121 of file WeightedDegreeRBFKernel.h.
int32_t nof_properties [protected] |
number of properties per amino acid
Definition at line 124 of file WeightedDegreeRBFKernel.h.
weights
Definition at line 128 of file WeightedDegreeRBFKernel.h.
width
Definition at line 118 of file WeightedDegreeRBFKernel.h.