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
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 24 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 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

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 36 of file WeightedDegreeRBFKernel.cpp.

~CWeightedDegreeRBFKernel (  )  [virtual]

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

Implements CKernel.

Definition at line 83 of file WeightedDegreeRBFKernel.cpp.

int32_t get_degree (  ) 

get degree

Returns:
degree

Definition at line 76 of file WeightedDegreeRBFKernel.h.

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

Returns:
kernel type UNKNOWN

Implements CKernel.

Definition at line 55 of file WeightedDegreeRBFKernel.h.

virtual const char* get_name (  )  const [virtual]

return the kernel's name

Returns:
name Gaussian

Implements CSGObject.

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 CSimpleKernel< float64_t >.

Definition at line 50 of file WeightedDegreeRBFKernel.cpp.

bool init_wd_weights (  )  [protected]

init degree weights

Returns:
if initialization was successful

Definition at line 57 of file WeightedDegreeRBFKernel.cpp.

bool set_degree ( int32_t  deg  ) 

set degree

Parameters:
deg new degree
Returns:
if setting was successful

Definition at line 70 of file WeightedDegreeRBFKernel.h.


Member Data Documentation

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.

float64_t* weights [protected]

weights

Definition at line 128 of file WeightedDegreeRBFKernel.h.

float64_t width [protected]

width

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