SHOGUN v0.9.0
公有成员 | 保护属性
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.h第30行定义。

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

所有成员的列表。

公有成员

 CPruneVarSubMean (bool divide=true)
virtual ~CPruneVarSubMean ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
 cleanup
virtual float64_t * apply_to_feature_matrix (CFeatures *f)
virtual float64_t * apply_to_feature_vector (float64_t *f, int32_t &len)
virtual const char * get_name ()

保护属性

int32_t * idx
float64_t * mean
float64_t * std
int32_t num_idx
bool divide_by_std
bool initialized
 true when already initialized

构造及析构函数文档

CPruneVarSubMean ( bool  divide = true)

constructor

参数:
divideif division shall be made

在文件PruneVarSubMean.cpp第21行定义。

~CPruneVarSubMean ( ) [virtual]

在文件PruneVarSubMean.cpp第27行定义。


成员函数文档

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.cpp第142行定义。

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.cpp第178行定义。

void cleanup ( ) [virtual]

cleanup

clean up allocated memory

实现了CPreProc。

在文件PruneVarSubMean.cpp第129行定义。

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

实现了CSGObject。

在文件PruneVarSubMean.h第56行定义。

bool init ( CFeatures *  f) [virtual]

initialize preprocessor from features

实现了CPreProc。

在文件PruneVarSubMean.cpp第33行定义。


成员数据文档

bool divide_by_std [protected]

divide by std

在文件PruneVarSubMean.h第68行定义。

int32_t* idx [protected]

idx

在文件PruneVarSubMean.h第60行定义。

bool initialized [protected]

true when already initialized

在文件PruneVarSubMean.h第71行定义。

float64_t* mean [protected]

mean

在文件PruneVarSubMean.h第62行定义。

int32_t num_idx [protected]

num idx

在文件PruneVarSubMean.h第66行定义。

float64_t* std [protected]

std

在文件PruneVarSubMean.h第64行定义。


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

SHOGUN Machine Learning Toolbox - Documentation