CConstKernel Class Reference

Inheritance diagram for CConstKernel:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Constant Kernel

A ``kernel'' that simply returns a single constant, i.e. $k({\bf x}, {\bf x'})= c$

Definition at line 25 of file ConstKernel.h.


Constructor & Destructor Documentation

CConstKernel::CConstKernel ( float64_t  c  ) 

constructor

Parameters:
c constant c

Definition at line 16 of file ConstKernel.cpp.

CConstKernel::CConstKernel ( CFeatures l,
CFeatures r,
float64_t  c 
)

constructor

Parameters:
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.


Member Function Documentation

virtual float64_t CConstKernel::compute ( int32_t  row,
int32_t  col 
) [protected, virtual]

compute kernel function for features a and b

Parameters:
row dummy row
col dummy col
Returns:
computed kernel function (const value)

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

Returns:
feature class ANY

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

Returns:
feature type ANY

Implements CKernel.

Definition at line 76 of file ConstKernel.h.

virtual EKernelType CConstKernel::get_kernel_type (  )  [virtual]

return what type of kernel we are

Returns:
kernel type CONST

Implements CKernel.

Definition at line 70 of file ConstKernel.h.

virtual const char* CConstKernel::get_name (  )  [virtual]

return the kernel's name

Returns:
name Const

Implements CKernel.

Definition at line 94 of file ConstKernel.h.

bool CConstKernel::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 CKernel.

Definition at line 31 of file ConstKernel.cpp.

bool CConstKernel::load_init ( FILE *  src  )  [virtual]

load kernel init_data

Parameters:
src file to load from
Returns:
if loading was successful

Implements CKernel.

Definition at line 37 of file ConstKernel.cpp.

bool CConstKernel::save_init ( FILE *  dest  )  [virtual]

save kernel init_data

Parameters:
dest file to save to
Returns:
if saving was successful

Implements CKernel.

Definition at line 42 of file ConstKernel.cpp.


Member Data Documentation

const value

Definition at line 110 of file ConstKernel.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation