CStringKernel< ST > Class Template Reference

Inheritance diagram for CStringKernel< ST >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CStringKernel (int32_t cachesize)
 CStringKernel (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 ()


Detailed Description

template<class ST>
class CStringKernel< ST >

Template class StringKernel, is the base class of all String Kernels.

Definition at line 18 of file StringKernel.h.


Constructor & Destructor Documentation

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

constructor

Parameters:
cachesize cache size

Definition at line 25 of file StringKernel.h.

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

constructor

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

Definition at line 32 of file StringKernel.h.


Member Function Documentation

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

return feature class the kernel can deal with

Returns:
feature class STRING

Implements CKernel.

Definition at line 63 of file StringKernel.h.

template<>
EFeatureType CStringKernel< 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 82 of file StringKernel.h.

template<>
EFeatureType CStringKernel< 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 80 of file StringKernel.h.

template<>
EFeatureType CStringKernel< 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 76 of file StringKernel.h.

template<>
EFeatureType CStringKernel< float64_t >::get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 72 of file StringKernel.h.

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

return feature type the kernel can deal with

Returns:
templated feature type

Implements CKernel.

Reimplemented in CCommUlongStringKernel, CCommWordStringKernel, and CWeightedCommWordStringKernel.

template<class ST>
virtual bool CStringKernel< 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 CCommUlongStringKernel, CCommWordStringKernel, CFixedDegreeStringKernel, CHistogramWordStringKernel, CLinearStringKernel, CLocalAlignmentStringKernel, CLocalityImprovedStringKernel, CMatchWordStringKernel, COligoKernel, CPolyMatchStringKernel, CPolyMatchWordStringKernel, CSalzbergWordStringKernel, CSimpleLocalityImprovedStringKernel, CWeightedCommWordStringKernel, CWeightedDegreePositionStringKernel, and CWeightedDegreeStringKernel.

Definition at line 47 of file StringKernel.h.


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

SHOGUN Machine Learning Toolbox - Documentation