CSparseKernel< ST > Class Template Reference


Detailed Description

template<class ST>
class CSparseKernel< ST >

Template class SparseKernel, is the base class of kernels working on sparse features.

See e.g. the CSparseGaussianKernel for an example.

Definition at line 22 of file SparseKernel.h.

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

List of all members.

Public Member Functions

 CSparseKernel (int32_t cachesize)
 CSparseKernel (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 ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

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

constructor

Parameters:
cachesize cache size

Definition at line 29 of file SparseKernel.h.

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

constructor

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

Definition at line 36 of file SparseKernel.h.


Member Function Documentation

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

return feature class the kernel can deal with

Returns:
feature class SPARSE

Implements CKernel.

Definition at line 68 of file SparseKernel.h.

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

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 89 of file SparseKernel.h.

template<>
EFeatureType CSparseKernel< uint8_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 87 of file SparseKernel.h.

template<>
EFeatureType CSparseKernel< 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 85 of file SparseKernel.h.

template<>
EFeatureType CSparseKernel< uint16_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 83 of file SparseKernel.h.

template<>
EFeatureType CSparseKernel< int32_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 81 of file SparseKernel.h.

template<>
EFeatureType CSparseKernel< 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 79 of file SparseKernel.h.

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

return feature type the kernel can deal with

Returns:
templated feature type

Implements CKernel.

Reimplemented in CSparseGaussianKernel, and CSparsePolyKernel.

template<class ST>
virtual bool CSparseKernel< ST >::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.

Reimplemented in CSparseGaussianKernel, CSparseLinearKernel, and CSparsePolyKernel.

Definition at line 47 of file SparseKernel.h.


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

SHOGUN Machine Learning Toolbox - Documentation