SHOGUN v0.9.0
公有成员
CLogPlusOne类参考

详细描述

Preprocessor LogPlusOne does what the name says, it adds one to a dense real valued vector and takes the logarithm of each component of it.

\[ {\bf x}\leftarrow \log({\bf x}+{\bf 1}) \]

It therefore does not need any initialization. It is most useful in situations where the inputs are counts: When one compares differences of small counts any difference may matter a lot, while small differences in large counts don't. This is what this log transformation controls for.

在文件LogPlusOne.h33行定义。

继承图,类CLogPlusOne
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CLogPlusOne ()
virtual ~CLogPlusOne ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
 cleanup
virtual bool load (FILE *f)
 initialize preprocessor from file
virtual bool save (FILE *f)
 save preprocessor init-data to file
virtual float64_tapply_to_feature_matrix (CFeatures *f)
virtual float64_tapply_to_feature_vector (float64_t *f, int32_t &len)
virtual const char * get_name ()

构造及析构函数文档

default constructor

在文件LogPlusOne.cpp19行定义。

~CLogPlusOne ( ) [virtual]

在文件LogPlusOne.cpp25行定义。


成员函数文档

float64_t * apply_to_feature_matrix ( CFeatures f) [virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

实现了CSimplePreProc< float64_t >

在文件LogPlusOne.cpp62行定义。

float64_t * apply_to_feature_vector ( float64_t f,
int32_t &  len 
) [virtual]

apply preproc on single feature vector result in feature matrix

实现了CSimplePreProc< float64_t >

在文件LogPlusOne.cpp81行定义。

void cleanup ( ) [virtual]

cleanup

clean up allocated memory

实现了CPreProc

在文件LogPlusOne.cpp39行定义。

virtual const char* get_name ( void  ) [virtual]
返回:
object name

重载CPreProc

在文件LogPlusOne.h60行定义。

bool init ( CFeatures f) [virtual]

initialize preprocessor from features

实现了CPreProc

在文件LogPlusOne.cpp30行定义。

bool load ( FILE *  f) [virtual]

initialize preprocessor from file

在文件LogPlusOne.cpp44行定义。

bool save ( FILE *  f) [virtual]

save preprocessor init-data to file

在文件LogPlusOne.cpp52行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation