CPruneVarSubMean类参考


详细描述

Preprocessor PruneVarSubMean will substract the mean and remove features that have zero variance.

It will optionally normalize standard deviation of features to 1 (by dividing by standard deviation of the feature)

在文件PruneVarSubMean.h30行定义。

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

所有成员的列表。

公有成员

 CPruneVarSubMean (bool divide=true)
virtual ~CPruneVarSubMean ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
 cleanup
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 ()

保护属性

int32_t * idx
float64_tmean
float64_tstd
int32_t num_idx
bool divide_by_std
bool initialized
 true when already initialized

构造及析构函数文档

CPruneVarSubMean ( bool  divide = true  ) 

constructor

参数:
divide if division shall be made

在文件PruneVarSubMean.cpp21行定义。

~CPruneVarSubMean (  )  [virtual]

在文件PruneVarSubMean.cpp27行定义。


成员函数文档

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 >

在文件PruneVarSubMean.cpp142行定义。

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 >

在文件PruneVarSubMean.cpp178行定义。

void cleanup (  )  [virtual]

cleanup

clean up allocated memory

实现了CPreProc

在文件PruneVarSubMean.cpp129行定义。

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

在文件PruneVarSubMean.h56行定义。

bool init ( CFeatures f  )  [virtual]

initialize preprocessor from features

实现了CPreProc

在文件PruneVarSubMean.cpp33行定义。


成员数据文档

bool divide_by_std [protected]

divide by std

在文件PruneVarSubMean.h68行定义。

int32_t* idx [protected]

idx

在文件PruneVarSubMean.h60行定义。

bool initialized [protected]

true when already initialized

在文件PruneVarSubMean.h71行定义。

float64_t* mean [protected]

mean

在文件PruneVarSubMean.h62行定义。

int32_t num_idx [protected]

num idx

在文件PruneVarSubMean.h66行定义。

float64_t* std [protected]

std

在文件PruneVarSubMean.h64行定义。


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

SHOGUN Machine Learning Toolbox - Documentation