CSimpleKernel< ST > Class Template Reference


Detailed Description

template<class ST>
class CSimpleKernel< ST >

Template class SimpleKernel is the base class for kernels working on Simple features.

CSimpleFeatures are dense Matrix like Features and Kernels operating on them all derive from this class (cf., e.g., CGaussianKernel)

Definition at line 24 of file SimpleKernel.h.

Inheritance diagram for CSimpleKernel< ST >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSimpleKernel (int32_t cachesize)
 CSimpleKernel (CFeatures *l, CFeatures *r)
virtual bool init (CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class ()
virtual EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

template<class ST>
CSimpleKernel< ST >::CSimpleKernel ( int32_t  cachesize  ) 

constructor

Parameters:
cachesize cache size

Definition at line 31 of file SimpleKernel.h.

template<class ST>
CSimpleKernel< ST >::CSimpleKernel ( CFeatures l,
CFeatures r 
)

constructor

Parameters:
l features of left-hand side
r features of right-hand side

Definition at line 38 of file SimpleKernel.h.


Member Function Documentation

template<class ST>
virtual EFeatureClass CSimpleKernel< ST >::get_feature_class (  )  [virtual]

return feature class the kernel can deal with

Returns:
feature class SIMPLE

Implements CKernel.

Definition at line 74 of file SimpleKernel.h.

template<>
EFeatureType CSimpleKernel< char >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 98 of file SimpleKernel.h.

template<>
EFeatureType CSimpleKernel< int16_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 94 of file SimpleKernel.h.

template<>
EFeatureType CSimpleKernel< uint64_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 88 of file SimpleKernel.h.

template<class ST>
virtual EFeatureType CSimpleKernel< ST >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

Returns:
templated feature type

Implements CKernel.

template<class ST>
virtual bool CSimpleKernel< ST >::init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel e.g. setup lhs/rhs of kernel, precompute normalization constants etc. make sure to check that your kernel can deal with the supplied features (!)

Parameters:
l features for left-hand side
r features for right-hand side
Returns:
if init was successful

Reimplemented from CKernel.

Reimplemented in CAUCKernel, CChi2Kernel, CGaussianKernel, CGaussianShortRealKernel, CLinearByteKernel, CLinearKernel, CLinearWordKernel, CPolyKernel, CPyramidChi2, CSigmoidKernel, and CTensorProductPairKernel.

Definition at line 53 of file SimpleKernel.h.


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

SHOGUN Machine Learning Toolbox - Documentation