Public Member Functions | Protected Member Functions | Protected Attributes

CWeightedDegreeRBFKernel Class Reference


Detailed Description

Definition at line 11 of file WeightedDegreeRBFKernel.h.

Inheritance diagram for CWeightedDegreeRBFKernel:
Inheritance graph
[legend]

List of all members.

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
virtual EFeatureClass get_feature_class ()
virtual EFeatureType get_feature_type ()
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_tweights

Constructor & Destructor Documentation

default constructor

Definition at line 19 of file WeightedDegreeRBFKernel.cpp.

CWeightedDegreeRBFKernel ( int32_t  size,
float64_t  width,
int32_t  degree,
int32_t  nof_properties 
)

constructor

Parameters:
size cache size
width width
degree degree
nof_properties number of properties per amino acid

Definition at line 25 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

Parameters:
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 31 of file WeightedDegreeRBFKernel.cpp.

~CWeightedDegreeRBFKernel (  )  [virtual]

Definition at line 39 of file WeightedDegreeRBFKernel.cpp.


Member Function Documentation

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

Parameters:
idx_a index a
idx_b index b
Returns:
computed kernel function at indices a,b

Reimplemented from CDotKernel.

Definition at line 78 of file WeightedDegreeRBFKernel.cpp.

int32_t get_degree (  ) 

get degree

Returns:
degree

Definition at line 88 of file WeightedDegreeRBFKernel.h.

virtual EFeatureClass get_feature_class (  )  [virtual]

return feature class the kernel can deal with

Returns:
feature class SIMPLE

Reimplemented from CDotKernel.

Definition at line 68 of file WeightedDegreeRBFKernel.h.

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

Returns:
float64_t feature type

Reimplemented from CDotKernel.

Definition at line 74 of file WeightedDegreeRBFKernel.h.

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

Returns:
kernel type UNKNOWN

Implements CDotKernel.

Definition at line 55 of file WeightedDegreeRBFKernel.h.

virtual const char* get_name ( void   )  const [virtual]

return the kernel's name

Returns:
name Gaussian

Reimplemented from CDotKernel.

Definition at line 61 of file WeightedDegreeRBFKernel.h.

bool init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel

Parameters:
l features of left-hand side
r features of right-hand side
Returns:
if initializing was successful

Reimplemented from CDotKernel.

Definition at line 45 of file WeightedDegreeRBFKernel.cpp.

bool init_wd_weights (  )  [protected]

init degree weights

Returns:
if initialization was successful

Definition at line 52 of file WeightedDegreeRBFKernel.cpp.

bool set_degree ( int32_t  deg  ) 

set degree

Parameters:
deg new degree
Returns:
if setting was successful

Definition at line 82 of file WeightedDegreeRBFKernel.h.


Member Data Documentation

int32_t degree [protected]

degree

Definition at line 112 of file WeightedDegreeRBFKernel.h.

int32_t nof_properties [protected]

number of properties per amino acid

Definition at line 115 of file WeightedDegreeRBFKernel.h.

float64_t* weights [protected]

weights

Definition at line 119 of file WeightedDegreeRBFKernel.h.

float64_t width [protected]

width

Definition at line 109 of file WeightedDegreeRBFKernel.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation