CNormOne类参考


详细描述

Preprocessor NormOne, normalizes vectors to have norm 1.

Formally, it computes

\[ {\bf x} \leftarrow \frac{{\bf x}}{||{\bf x}||} \]

It therefore does not need any initialization. It is most useful to get data onto a ball of radius one.

在文件NormOne.h33行定义。

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

所有成员的列表。

公有成员

 CNormOne ()
virtual ~CNormOne ()
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 ()

构造及析构函数文档

CNormOne (  ) 

default constructor

在文件NormOne.cpp19行定义。

~CNormOne (  )  [virtual]

在文件NormOne.cpp24行定义。


成员函数文档

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 >

在文件NormOne.cpp57行定义。

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 >

在文件NormOne.cpp74行定义。

void cleanup (  )  [virtual]

cleanup

clean up allocated memory

实现了CPreProc

在文件NormOne.cpp38行定义。

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

在文件NormOne.h59行定义。

bool init ( CFeatures f  )  [virtual]

initialize preprocessor from features

实现了CPreProc

在文件NormOne.cpp29行定义。

bool load ( FILE *  f  )  [virtual]

initialize preprocessor from file

在文件NormOne.cpp43行定义。

bool save ( FILE *  f  )  [virtual]

save preprocessor init-data to file

在文件NormOne.cpp49行定义。


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

SHOGUN Machine Learning Toolbox - Documentation