CCharFeatures Class Reference

Inheritance diagram for CCharFeatures:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CCharFeatures (EAlphabet alpha, int32_t size=0)
 CCharFeatures (CAlphabet *alpha, int32_t size=0)
 CCharFeatures (const CCharFeatures &orig)
 CCharFeatures (EAlphabet alphabet, char *feature_matrix, int32_t num_feat, int32_t num_vec)
 CCharFeatures (EAlphabet alphabet, char *fname)
 ~CCharFeatures ()
CAlphabetget_alphabet ()
virtual void copy_feature_matrix (char *src, int32_t num_feat, int32_t num_vec)
virtual bool load (char *fname)
virtual bool save (char *fname)

Protected Attributes

CAlphabetalphabet


Detailed Description

The class CharFeatures implements a dense char matrix. It inherits its functionality from CSimpleFeatures, which should be consulted for further reference.

Definition at line 22 of file CharFeatures.h.


Constructor & Destructor Documentation

CCharFeatures::CCharFeatures ( EAlphabet  alpha,
int32_t  size = 0 
)

constructor

Parameters:
alpha alphabet (type) to use
size cache size

Definition at line 15 of file CharFeatures.cpp.

CCharFeatures::CCharFeatures ( CAlphabet alpha,
int32_t  size = 0 
)

constructor

Parameters:
alpha alphabet to use
size cache size

Definition at line 21 of file CharFeatures.cpp.

CCharFeatures::CCharFeatures ( const CCharFeatures orig  ) 

copy constructor

Definition at line 27 of file CharFeatures.cpp.

CCharFeatures::CCharFeatures ( EAlphabet  alphabet,
char *  feature_matrix,
int32_t  num_feat,
int32_t  num_vec 
)

constructor

Parameters:
alphabet alphabet to use
feature_matrix feature matrix to use
num_feat number of features in matrix
num_vec number of vectors in matrix

Definition at line 33 of file CharFeatures.cpp.

CCharFeatures::CCharFeatures ( EAlphabet  alphabet,
char *  fname 
)

constructor

Parameters:
alphabet alphabet (type) to use
fname filename to load features from

Definition at line 39 of file CharFeatures.cpp.

CCharFeatures::~CCharFeatures (  ) 

Definition at line 46 of file CharFeatures.cpp.


Member Function Documentation

virtual void CCharFeatures::copy_feature_matrix ( char *  src,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

copy feature matrix

wrapper to base class' method

Parameters:
src feature matrix to copy
num_feat number of features
num_vec number of vectors

Reimplemented from CSimpleFeatures< char >.

Definition at line 77 of file CharFeatures.h.

CAlphabet* CCharFeatures::get_alphabet (  ) 

get alphabet

Returns:
alphabet

Definition at line 64 of file CharFeatures.h.

bool CCharFeatures::load ( char *  fname  )  [virtual]

load features from file

Parameters:
fname filename to load from
Returns:
if loading was successful

Reimplemented from CFeatures.

Definition at line 52 of file CharFeatures.cpp.

bool CCharFeatures::save ( char *  fname  )  [virtual]

save features to file

Parameters:
fname filename to save to
Returns:
if saving was successful

Reimplemented from CFeatures.

Definition at line 103 of file CharFeatures.cpp.


Member Data Documentation

alphabet

Definition at line 98 of file CharFeatures.h.


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

SHOGUN Machine Learning Toolbox - Documentation