Public Member Functions

CStringDistance< ST > Class Template Reference


Detailed Description

template<class ST>
class shogun::CStringDistance< ST >

template class StringDistance

Definition at line 20 of file StringDistance.h.

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

List of all members.

Public Member Functions

 CStringDistance ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class ()
virtual EFeatureType get_feature_type ()
virtual const char * get_name (void) const
virtual void cleanup ()=0
virtual EDistanceType get_distance_type ()=0
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 ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

CStringDistance (  ) 

default constructor

Definition at line 24 of file StringDistance.h.


Member Function Documentation

virtual void cleanup (  )  [pure virtual]

cleanup distance

abstract base method

Implements CDistance.

Implemented in CCanberraWordDistance, CHammingWordDistance, and CManhattanWordDistance.

virtual EDistanceType get_distance_type (  )  [pure virtual]

get distance type we are

abstrace base method

Returns:
distance type

Implements CDistance.

Implemented in CCanberraWordDistance, CHammingWordDistance, and CManhattanWordDistance.

virtual EFeatureClass get_feature_class (  )  [virtual]

get feature class the distance can deal with

Returns:
feature class STRING

Implements CDistance.

Definition at line 50 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the SHORT distance can deal with

Returns:
feature type SHORT

Implements CDistance.

Definition at line 109 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the BYTE distance can deal with

Returns:
feature type BYTE

Implements CDistance.

Definition at line 115 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the ULONG distance can deal with

Returns:
feature type ULONG

Implements CDistance.

Definition at line 91 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the INT distance can deal with

Returns:
feature type INT

Implements CDistance.

Definition at line 97 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the DREAL distance can deal with

Returns:
feature type DREAL

Implements CDistance.

Definition at line 85 of file StringDistance.h.

virtual EFeatureType get_feature_type (  )  [virtual]

get feature type the distance can deal with

Returns:
template-specific feature type

Implements CDistance.

EFeatureType get_feature_type (  )  [virtual]

get feature type the WORD distance can deal with

Returns:
feature type WORD

Implements CDistance.

Definition at line 103 of file StringDistance.h.

EFeatureType get_feature_type (  )  [virtual]

get feature type the CHAR distance can deal with

Returns:
feature type CHAR

Implements CDistance.

Definition at line 121 of file StringDistance.h.

virtual const char* get_name ( void   )  const [virtual]

Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.

Returns:
name of the SGSerializable

Implements CSGObject.

Reimplemented in CCanberraWordDistance, CHammingWordDistance, and CManhattanWordDistance.

Definition at line 63 of file StringDistance.h.

virtual bool init ( CFeatures l,
CFeatures r 
) [virtual]

init distance

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

Reimplemented from CDistance.

Reimplemented in CCanberraWordDistance, CHammingWordDistance, and CManhattanWordDistance.

Definition at line 35 of file StringDistance.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation